Game object control method and device
By displaying the mobile control panel in response to the user's touch instructions in the game, and allowing the user to input movement parameters to update the movement information of the game object, it solves the problems of single control method and low degree of freedom of the game object in the existing technology, and achieves a more flexible controls and a better gaming experience.
Patent Information
- Application Number
- CN202210926811.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-08-03
AI Technical Summary
In the prior art, the game object control method is too single and has low freedom, so it is impossible to support players to control game object movement and perform other operations in the game scene, affecting the game experience.
Provides a game object control method that displays a mobile control panel in response to the user's touch instructions, allows the user to input movement parameters to update the movement information of the game object, and displays the updated movement information through operating controls so that the game object follows the updated Information moves around the game scene.
It achieves more flexible game object control, allows players to customize movement parameters, improves the freedom of operation and gaming experience, and reduces the number of controls on the display interface.
Smart Images

Figure CN115253293B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and more particularly to a method and device for controlling game objects. Background Art
[0002] With the development of computer technology, games are accepted by more and more users and have become an important way for most users to pass their time. Game object control games have always been popular among players. In the prior art, when controlling game objects in the game, most of them are implemented by operating controls. By setting different operating mechanisms for the operating controls, players can control the speed and direction of the game objects, and the parameters related to the speed and direction of the game objects in the game scene need to be displayed at a designated location on the terminal to meet the player's gaming needs of controlling the game characters. However, this operating method is too single and has a low degree of freedom, which results in some game scenes not supporting players to control the movement of game objects while performing other operations, which greatly limits player operations and affects the gaming experience. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention
[0003] In view of this, the embodiment of this specification provides a method for controlling a game object. This specification also relates to a game object control device, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a game object control method is provided, which is applied to a client and includes:
[0005] Displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene;
[0006] According to the movement parameters input by the user through the movement control panel, the movement information of the game object in the game scene is updated;
[0007] The updated movement information is displayed through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0008] Optionally, the displaying of the mobile control panel in response to a touch instruction submitted by the user for the operation control includes:
[0009] Receiving the touch control instruction submitted by the user for the operation control;
[0010] Determine a panel display area according to the touch command, and display the mobile control panel in the panel display area;
[0011] When a panel movement instruction submitted by the user for the mobile control panel is received, the mobile control panel is displayed in a target panel display area according to the panel movement instruction.
[0012] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0013] receiving a target value input by the user through the mobile control panel;
[0014] Convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result;
[0015] The movement information of the game object in the game scene is updated based on the movement parameters.
[0016] Optionally, displaying the updated movement information through the operation control includes:
[0017] Determine a first control element and a second control element corresponding to the operation control;
[0018] determining an element position of the first control element within the second control element according to the updated movement information;
[0019] The updated movement information is displayed through a first control element located at the element position.
[0020] Optionally, displaying the updated movement information through the operation control includes:
[0021] Determine the control effect information corresponding to the operation control according to the updated movement information;
[0022] Based on the control effect information, the operation control is displayed and updated to obtain a target operation control;
[0023] The updated movement information is displayed through the target operation control.
[0024] Optionally, before the step of displaying the mobile control panel in response to the touch instruction submitted by the user for the operation control is performed, the method further includes:
[0025] Receiving an operation instruction submitted by the user for the operation control;
[0026] Determine a control movement trajectory corresponding to the operation control according to the operation instruction;
[0027] The moving direction and moving speed corresponding to the game object are determined according to the moving trajectory of the control as the movement information of the game object in the game scene.
[0028] Optionally, determining the moving direction and moving speed corresponding to the game object according to the moving trajectory of the control includes:
[0029] Determine the moving distance and deflection angle corresponding to the operating control according to the moving trajectory of the control;
[0030] Determine the object movement speed corresponding to the movement distance and the object movement direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameter;
[0031] The object moving speed is used as the moving speed corresponding to the game object, and the object moving direction is used as the moving direction corresponding to the game object.
[0032] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0033] receiving a movement value input by the user through the movement control panel;
[0034] In the case where the movement value is less than the value threshold, determining the movement parameter based on the movement value, and updating the movement information of the game object in the game scene according to the movement parameter;
[0035] In the case where the movement value is greater than or equal to a numerical threshold, the movement parameter is determined according to the numerical threshold, and the movement information of the game object in the game scene is updated according to the movement parameter.
[0036] Optionally, the determination of the movement parameter includes:
[0037] Collecting pressure parameters through a pressure sensor configured in the client, wherein the pressure sensor and the mobile control panel have a position corresponding relationship;
[0038] According to the conversion relationship between the preset pressure parameter and the preset movement parameter, the target movement parameter corresponding to the pressure parameter is determined as the movement parameter input by the user through the movement control panel.
[0039] According to a second aspect of an embodiment of this specification, a game object control device is provided, which is applied to a client and includes:
[0040] A display panel module, configured to display a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene;
[0041] An updating parameter module, configured to update the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel;
[0042] The information display module is configured to display the updated movement information through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0043] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0044] Memory and processor;
[0045] The memory is used to store computer executable instructions, and the processor is used to implement the steps of the game object control method when executing the computer executable instructions.
[0046] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the game object control method are implemented.
[0047] The game object control method provided in the present specification can display a mobile control panel in response to a touch instruction submitted by the user to an operation control in order to make it more convenient for the user to control the game object, and update the movement information of the game object in the game scene according to the movement parameters input by the user through the mobile control panel, and finally display the updated movement information through the operation control, and the game object will move in the game scene according to the updated movement information; the movement information of the game object can be changed by customizing the input of movement parameters, which makes it more convenient for the user to flexibly control the movement speed of the game object, and the movement information is displayed by operating the operation control of the game object movement, which can effectively reduce the number of controls on the display interface, so that the user can operate more flexibly and improve the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a game object control method provided by an embodiment of this specification;
[0049] Figure 2 is a schematic diagram corresponding to the first type of operation control provided in an embodiment of this specification;
[0050] Figure 3is a schematic diagram corresponding to the second type of operation control provided in an embodiment of this specification;
[0051] Figure 4 is a schematic diagram corresponding to the third type of operation control provided in an embodiment of this specification;
[0052] Figure 5 is a schematic diagram corresponding to the fourth type of operation control provided in an embodiment of this specification;
[0053] Figure 6 is a processing flow chart of a game object control method provided in an embodiment of this specification;
[0054] Figure 7 It is a structural schematic diagram of a game object control device provided in an embodiment of this specification;
[0055] Figure 8 It is a structural block diagram of a computing device provided in one embodiment of this specification. DETAILED DESCRIPTION
[0056] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0057] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0058] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0059] In this specification, a game object control method is provided. This specification also relates to a game object control device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0060] Figure 1 A flowchart of a game object control method provided according to an embodiment of this specification is shown. The method is applied to a client and specifically includes the following steps:
[0061] Step S102, displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene.
[0062] The game object control method provided in this embodiment can control game objects in any game scene. For example, in a racing game, a virtual vehicle can be controlled; in a sailing game, a virtual ship can be controlled; in an airplane game, a virtual airplane can be controlled. This embodiment takes a sailing game as an example to illustrate the game object control method. Accordingly, the game object is a virtual ship in a sailing game scene, that is, a ship that the player needs to control in the game.
[0063] Specifically, the user is a player who controls the movement of the game object. Accordingly, the operation control specifically refers to the touch control for the player to control the movement of the game object, including but not limited to the roulette control, button control, etc. Among them, the operation control can control the game object to move in the virtual scene at the required speed and direction based on the player's touch operation, and the operation control can call up the mobile control panel based on the player's touch command, wherein the touch command can be a double-click command, a long press command, a sliding command, etc., and this embodiment does not make any restrictions here. Accordingly, the game scene specifically refers to the scene for the game object to move in the game, such as the ocean in a sailing game; another example is the track in a racing game. Correspondingly, the mobile control panel specifically refers to a panel for the player to update the movement parameters of the game object. After the user submits a touch command for the operation control, the mobile control panel can be called up according to the touch command of the set operation mode. At this time, the mobile control panel will be displayed to the user to facilitate the user to update the movement information of the game object through the mobile control panel, which is more convenient for the user to operate.
[0064] Based on this, in the target game, the user can control the movement of the game object in the game scene through the operation controls. If the user has more fine-grained control requirements for the movement of the game object, the user can submit touch commands for the operation controls to invoke the mobile control panel according to the touch commands and display it to the user through the client. At this time, the user can adjust the movement parameters through the mobile control panel so that the game object can move in the game scene as needed, and the user can free his hands to perform other operations related to the target game.
[0065] Furthermore, when the user controls the game object to move in the game scene through the operation control, in order to make the operation more convenient for the user, the speed and direction of the game object in the game scene can be affected by the moving distance of the operation control, and the control can be completed according to the control movement trajectory. In this embodiment, the specific implementation method is as follows:
[0066] Step S1022: receiving an operation instruction submitted by the user for the operation control.
[0067] Step S1024: determining a control movement trajectory corresponding to the operation control according to the operation instruction.
[0068] Step S1026, determining the moving direction and moving speed corresponding to the game object according to the moving trajectory of the control as the movement information of the game object in the game scene.
[0069] Specifically, the operation instruction refers to the instruction submitted by the user to drag the operation control to move when the user controls the game object to move in the game scene; accordingly, the control movement trajectory refers to the trajectory of the user dragging the operation control to move according to the operation instruction after the user submits the operation instruction, and the information that the user needs to control the game object to move can be determined according to the movement trajectory of the control dragged by the user, so as to realize the on-demand control of the game object to move in the game scene. Accordingly, the movement direction is the direction in which the user controls the game object to move at the current moment, and the movement speed is the speed at which the user controls the game object to move in the game scene at the current moment.
[0070] Based on this, after receiving the operation instruction submitted by the user for the operation control, it means that the user needs to control the game object to move in the game scene at the current moment. In order to be able to control the game object more accurately according to the user's operation requirements, the control movement trajectory corresponding to the operation control can be determined according to the operation instruction, that is, the movement trajectory of the user dragging the operation control, so as to determine the corresponding movement direction and movement speed of the game object according to the control movement trajectory, and control the movement of the game object in the game scene with this movement direction and movement speed to meet the user's control needs.
[0071] For an example, see Figure 2 As shown in (a), it at least includes an operation control and a ship that can be controlled by the player. When the operation instruction submitted by the player for the operation control is received, the control movement trajectory will be determined. By analyzing the control movement trajectory, it can be determined that the operation control is pushed from the center point to the control boundary by the player, and the direction is 30 degrees deflected from the vertical direction. Therefore, it can be determined that the player needs to control the ship to travel at the maximum speed, and the movement direction is 30 degrees to the right of the travel direction. The movement of the ship is determined according to the operation result. Figure 2 As shown in (b).
[0072] In summary, by determining the movement direction and speed based on the movement trajectory of the control, the user's control requirements for controlling the game object can be accurately determined, so that the game object can move in the game scene according to the movement information, thereby satisfying the user's flexibility in controlling the game object.
[0073] Furthermore, considering that users have different control accuracy requirements for game objects in different game scenes, in order to support users to control game objects more freely, the operation control can be set as a linear operation control, that is, as the length of the control movement trajectory changes, the speed of the game object in the game scene can be affected. In this embodiment, the specific implementation method is as follows:
[0074] Determine the moving distance and deflection angle corresponding to the operating control according to the control movement trajectory; determine the object moving speed corresponding to the moving distance and the object moving direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameters; use the object moving speed as the moving speed corresponding to the game object, and use the object moving direction as the moving direction corresponding to the game object.
[0075] Specifically, the moving distance specifically refers to the distance that the user drags the moving control relative to the starting point, and the deflection angle specifically refers to the deflection angle of the user dragging the moving control relative to the Y axis in the set coordinate system, wherein the set coordinate system can be established according to the display screen of the client. Correspondingly, the mapping relationship between the preset moving information and the control moving parameters specifically refers to the pre-established relationship between the moving distance and the deflection angle and the speed and direction of the game object, based on which the player's control moving trajectory can be mapped to the moving information of the game object; for example, if the player drags the operating control to move 0.5cm, the speed of the game object in the game scene will increase from 0m / s to 10m / s, and if the player drags the operating control to move 1cm, the speed of the game object in the game scene will increase from 0m / s to 20m / s, and accordingly, if the player drags the operating control to deflect 10 degrees to the right, the moving direction of the game object in the game scene will deflect 20 degrees to the right. In other words, the operating control supports the player's linear manipulation, and the linear change can affect the speed and direction of the game object in the game scene as the player drags the operating control by the distance and angle.
[0076] In actual applications, the mapping relationship between the preset movement information and the control movement parameters can be set according to the actual application scenario, and this embodiment does not make any limitation here.
[0077] Based on this, after determining the control movement trajectory of the user's manipulation of the operation control according to the operation instruction, the movement distance and deflection angle corresponding to the operation control can be determined according to the control movement trajectory; thereafter, combining the mapping relationship between the preset movement information and the control movement parameters, the object movement speed corresponding to the movement distance and the object movement direction corresponding to the deflection angle can be determined; finally, the object movement speed can be used as the corresponding movement speed of the game object, and the object movement direction can be used as the corresponding movement direction of the game object.
[0078] For an example, see Figure 2As shown in (c), the operation control is at the center point of the wheel, and the speed changes from the minimum speed to the maximum speed from the center point to the boundary, that is, the center point is 0m / s, and the speed will change to 30m / s when dragged to the boundary. The moving speed of the ship is evenly divided within a fixed radius. Taking the radius of 1.5cm as an example, the speed increases by 10m / s for every 0.5cm change. The moving angle is evenly divided within a fixed circle, and the moving direction also changes by 90 degrees for every 90-degree change. When it is determined that the player drags the control to move 1.2cm and deflects 90 degrees to the right, the speed of the ship will be increased from 0m / s to 20m / s, and the sailing direction will deflect 90 degrees to the right to continue sailing. Or the speed increases by 2m / s for every 0.1cm change, and the moving direction also changes by 90 degrees for every 90-degree change. When it is determined that the player drags the control to move 1.2cm and deflects 90 degrees to the right, the speed of the ship will be increased from 0m / s to 24m / s, and the sailing direction will deflect 90 degrees to the right to continue sailing.
[0079] In summary, by presetting the mapping relationship between movement information and control movement parameters, it is possible for players to linearly control the movement of game objects in the game scene, making the operation of game objects more flexible and allowing players to freely control the movement speed and direction of game objects as needed.
[0080] In the specific implementation, it is considered that after the mobile control panel is displayed, it will occupy a part of the screen area, which is likely to block the moving picture of the game object. Therefore, in order to avoid this situation and affect the user's operation, the panel display area can be set according to the needs, and it can be adjusted when the user has the need to move. In this embodiment, the specific implementation method is as follows:
[0081] Receive the touch instruction submitted by the user for the operation control; determine the panel display area according to the touch instruction, and display the mobile control panel in the panel display area; when receiving the panel movement instruction submitted by the user for the mobile control panel, display the mobile control panel in the target panel display area according to the panel movement instruction.
[0082] Specifically, the panel display area specifically refers to the area on the screen of the client for displaying the mobile control panel. The setting of the area can be selected according to actual needs, and this embodiment does not make any limitation here. Correspondingly, the panel move instruction specifically refers to the instruction submitted by the user for the mobile control panel displayed in the panel display area, which is used to move the mobile control panel, and the area after the move is the target panel display area.
[0083] Based on this, when a user submits a touch command for an operation control, it means that the user needs to customize the movement information of the game object in the game scene. At this time, the panel display area can be determined according to the touch command, and the mobile control panel can be displayed in the panel display area. At this time, the user can adjust the movement information through the mobile control panel in the panel display area.
[0084] Furthermore, when the user needs to move the mobile control panel, the mobile control panel displayed in the panel display area can be moved to the target panel display area according to the panel movement instruction, so as to display the mobile control panel in the target panel display area, so that the user can adjust the position of the mobile control panel according to his own needs.
[0085] Continuing with the above example, when a double-click command is received from the player for the operation control, the mobile control panel will be called out, such as Figure 3 As shown in (a), players can customize the speed of the ship by inputting values on the mobile control panel. During this process, the mobile control panel will be displayed above the operation controls. If the mobile control panel blocks the game screen, players can drag the panel to move it. The display effect after moving is as follows Figure 3 As shown in (b).
[0086] In actual applications, the size of the mobile control panel can also be adjusted according to actual needs, such as enlarging or reducing; at the same time, the mobile control panel can also support the adjustment of the moving direction, and the game object can be directly controlled to change the moving direction by inputting the deflection angle.
[0087] In summary, by providing users with more convenient adjustments to the mobile control panel, users can control game objects more flexibly in the game without affecting the game screen, thereby further improving the user's gaming experience.
[0088] Step S104: updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel.
[0089] Specifically, after the mobile control panel is displayed to the user as mentioned above, further, since the mobile control panel inputs the mobile parameters and what is updated is the movement information of the game object in the game scene, it is necessary to update the movement information in combination with the mobile parameters to achieve a change in the movement method of the game object in the game scene.
[0090] Among them, the movement parameter specifically refers to the value input by the user through the mobile control panel, and correspondingly, the movement information specifically refers to the information corresponding to the movement of the game object in the game scene, including but not limited to the movement direction information and the movement speed information.
[0091] Furthermore, in order to facilitate the user to customize and update the movement information, the user can only input a value through the movement control panel, and then convert the input value to obtain the movement parameter, and then update the movement information. In this embodiment, the specific implementation method is as follows:
[0092] Receive the target value input by the user through the mobile control panel; convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result; update the movement information of the game object in the game scene based on the movement parameter.
[0093] Specifically, the target value specifically refers to the value input by the user through the mobile control panel; correspondingly, the attribute information specifically refers to the information for converting the target value, and the speed movement unit and / or the angle deflection unit of the game object in the game scene can be determined through the attribute information to realize the conversion of the target value into the corresponding movement parameters of the game object, that is, the movement speed and direction of the game object in the game scene.
[0094] Based on this, after receiving the target value input by the user through the mobile control panel, in order to control the movement of the game object in the game scene based on the target value, the target value can be converted according to the attribute information of the game object, so as to obtain the movement parameter according to the conversion result, and finally the game object can be driven to move in the game scene based on the movement parameter.
[0095] For example, when the player inputs a value of 30 through the mobile control panel, the value can be converted according to the movement unit m / s of the ship in the game scene, and the movement parameter 30m / s is obtained according to the conversion result. The movement speed of the ship is updated based on this, and a customized change of the movement speed of the ship can be achieved.
[0096] In summary, by setting the conversion from numerical values to movement parameters, the number of numbers that users need to input through the mobile control panel can be effectively reduced, so that users can complete the movement control of game objects with fewer operations, further improving the user's gaming experience.
[0097] In addition, considering that the value inputted by the mobile control panel is customized by the user, and the movement information of the game object in the game scene is controlled by the game mechanism, in order to ensure that the game object can follow the game mechanism, a judgment can be made after the movement value is inputted, so as to update the movement information according to the judgment result. In this embodiment, the specific implementation method is as follows:
[0098] Receive the movement value input by the user through the movement control panel; when the movement value is less than a numerical threshold, determine the movement parameter based on the movement value, and update the movement information of the game object in the game scene according to the movement parameter; when the movement value is greater than or equal to the numerical threshold, determine the movement parameter according to the numerical threshold, and update the movement information of the game object in the game scene according to the movement parameter.
[0099] Specifically, the moving value specifically refers to the value input by the user through the mobile control panel; correspondingly, the value threshold specifically refers to the threshold for detecting whether the moving value is reasonable.
[0100] Based on this, after receiving the movement value input by the user through the mobile control panel, the movement value can be compared with the preset numerical threshold; if the movement value is less than the numerical threshold, it means that the movement value input by the user at this time is within the controllable range of the movement speed of the game object. Therefore, the movement parameters can be determined based on the movement value input by the user, and the movement information of the game object in the game scene can be updated according to the movement parameters.
[0101] If the movement value is greater than or equal to the numerical threshold, it means that the movement value input by the user at this time is not within the controllable range of the movement speed of the game object, and further indicates that the game object cannot move according to this value. In the case that the movement value is greater than or equal to the numerical threshold, the movement parameters can be determined according to the numerical threshold, and then the movement information of the game object in the game scene can be updated according to the movement parameters.
[0102] In specific implementation, the related description of determining the movement parameters according to the movement value and determining the movement parameters according to the numerical threshold can refer to the description of determining the movement parameters based on the target value in the above embodiment, and this embodiment will not be elaborated in detail here.
[0103] Using the above example, when the player inputs a value in the mobile control panel, the value a can be compared with the value threshold b corresponding to the maximum sailing speed of the ship. If a<b, it means that the value currently input by the player is converted into the mobile parameter to update the ship speed, and it will not exceed the maximum sailing speed of the ship. At this time, the mobile parameter can be determined based on the value a, and the sailing speed of the ship can be updated according to the mobile parameter. The updated sailing speed is less than the maximum sailing speed. If a≥b, it means that the value currently input by the player is converted into the mobile parameter to update the ship speed, which will be greater than or equal to the maximum sailing speed of the ship, which does not meet the game mechanism setting. Therefore, the mobile parameter can be determined according to the value threshold b, and the sailing speed of the ship can be updated according to the mobile parameter. The updated sailing speed is equal to the maximum sailing speed.
[0104] In summary, by determining the movement value based on the numerical threshold and updating the movement information of the game object according to the determination result, the game object can be moved according to the game mechanism to ensure that the control of the game object is completed under the premise that the game can run normally.
[0105] In addition, considering that the mobile control panel will occupy a part of the screen area, the game screen may be blocked. Therefore, in order to facilitate the user's operation, the movement parameters can be collected through the pressure sensor after the mobile control panel is called out. In this embodiment, the specific implementation method is as follows:
[0106] The pressure parameters are collected by a pressure sensor configured in the client, wherein the pressure sensor has a positional correspondence with the mobile control panel; based on a conversion relationship between a preset pressure parameter and a preset mobile parameter, a target mobile parameter corresponding to the pressure parameter is determined as the mobile parameter input by the user through the mobile control panel.
[0107] Specifically, the pressure sensor refers to the sensor configured at the bottom of the screen in the client, which is used to collect pressure parameters and convert them into movement parameters; correspondingly, the target movement parameter refers to the movement parameter calculated based on the pressure parameter collected by the pressure sensor, and will be used as the movement parameter input by the user to update the movement information of the game object.
[0108] Based on this, when the mobile control panel is awakened based on the touch command, the mobile control panel will be displayed at the position corresponding to the pressure sensor. At this time, the pressure sensor can collect the pressure grams of the user pressing the screen, that is, the pressure parameter. After that, according to the conversion relationship between the preset pressure parameter and the preset movement parameter, the target movement parameter corresponding to the current pressure parameter can be determined, and it can be used as the movement parameter to update the movement information of the game object in the game scene.
[0109] In practical applications, the conversion relationship between the pressure parameter and the movement parameter can be set according to actual needs, and this embodiment does not make any limitation here. In specific implementation, the pressure parameter and the movement parameter can be set in a proportional relationship, so that the larger the pressure parameter, the larger the movement parameter.
[0110] In summary, by combining the hardware facilities on the client to support users in updating the movement information of game objects, user operations can be made more convenient. The speed of game objects can be changed without moving the operating controls, avoiding obstruction of the game screen when the hands move on the screen, and further improving the user's gaming experience.
[0111] Step S106, displaying the updated movement information through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0112] Specifically, after the movement information of the game object is updated based on the movement parameters, further, considering that in most game scenes, the movement information of the game object in the game scene needs to be displayed to the user, so that the user can adjust the next operation of the game object according to the current movement information. For example, in a racing game, the vehicle speed needs to be displayed to the user, so that the user can decide whether to slow down or speed up when entering a curve according to the speed. On this basis, most movement information needs to be displayed through additional controls, that is, the movement information needs to be displayed through separate controls at other locations on the screen, which will make the game screen more complicated.
[0113] Based on this, in order to facilitate user operations and make the game screen more concise, after obtaining the updated movement information, the updated movement information can be displayed through the operation controls. That is to say, the movement information will be rendered on the operation controls for display, so as to realize the fusion of the operation controls and the visual movement information. This will not affect the user operation, but also reduce the number of controls in the game screen, so that the user can experience more concise operations, effectively improving the user's gaming experience.
[0114] Furthermore, after obtaining the updated movement information, the updated movement information can be rendered on the operation control, so that the updated movement information can be displayed through the operation control, and the game object will also move in the game scene according to the updated movement information.
[0115] Furthermore, in the process of displaying the updated movement information through the operation control, since the operation control is a control that supports the user to operate the game object to move, in order to display more accurate movement information, it can be completed by positioning the element position. In this embodiment, the specific implementation method is as follows:
[0116] Determine a first control element and a second control element corresponding to the operation control; determine an element position of the first control element within the second control element according to the updated movement information; and display the updated movement information through the first control element located at the element position.
[0117] Specifically, the first control element specifically refers to the control element in the operation control for the user to operate, such as in the roulette-type operation control, the joystick is the first control element; correspondingly, the second control element specifically refers to the control element in the operation control used to standardize the control area corresponding to the first control element, such as in the roulette-type operation control, the roulette is the second control element; correspondingly, the element position specifically refers to the position of the first control element in the second control element determined based on the movement information, and the position corresponds to the direction and speed of the game object.
[0118] Based on this, after determining the updated movement information, the first control element and the second control element can be determined in the operation control first, and according to the updated movement information, the element position of the first control element in the second control element at the current moment can be determined. After that, the updated movement information is displayed with the first control element located at the element position, thereby realizing the integration of the operation control and the movement information, making it more convenient for users to understand the movement information of the game objects.
[0119] Using the above example, see Figure 4 In the schematic diagram (a), the speed of the ship before the player controls it is 0 m / s. After receiving the player's input of the movement parameters on the movement control panel, it is determined that the player needs the ship to move at a speed of 15 m / s and 30 degrees to the left. At this time, the speed of the ship will be displayed by operating the joystick in the control panel. The display effect is as follows: Figure 4 As shown in (b).
[0120] In summary, by displaying the movement information of game objects with operation controls, the game screen can be made simpler, making it more convenient for users to operate.
[0121] In addition, in order to enable users to pay attention to the changes in mobile information in a timely manner, different display effects can be set for mobile information at different times. The specific implementation method is as follows:
[0122] Determine the control effect information corresponding to the operation control according to the updated movement information; update the display of the operation control based on the control effect information to obtain a target operation control; and display the updated movement information through the target operation control.
[0123] Specifically, the control effect information refers to the ability to enable the operation control to reflect the movement information of different stages with different display effects according to the movement information. The control effect information includes but is not limited to control color change, control appearance change, etc.
[0124] Based on this, after determining the updated movement information, the control effect information corresponding to the current operation control can be determined according to the updated movement information; then the operation control is displayed and updated based on the control effect information to obtain the target operation control; finally, the updated movement information can be displayed through the target operation control.
[0125] Using the above example, at 0m / s, the control is white, and the display effect of the control is as follows: Figure 5 As shown in the figure, when the speed changes to 15m / s, the operation control is black, and the display effect is as follows Figure 5 As shown, different speeds are represented by different colors.
[0126] In actual applications, when the control effect information of the operation control corresponds to the color change, different movement information can be reflected by setting a gradient for the color, that is, as the speed of the game object increases, the color will gradually become darker, and vice versa, as the speed decreases, the color will gradually become lighter.
[0127] In summary, by updating the effects of controls, controls can be used to display different movement information in different forms, so that users can more easily pay attention to changes in movement information, thereby improving the user's gaming experience.
[0128] The game object control method provided in the present specification can display a mobile control panel in response to a touch instruction submitted by the user to an operation control in order to make it more convenient for the user to control the game object, and update the movement information of the game object in the game scene according to the movement parameters input by the user through the mobile control panel, and finally display the updated movement information through the operation control, and the game object will move in the game scene according to the updated movement information; the movement information of the game object can be changed by customizing the input of movement parameters, which makes it more convenient for the user to flexibly control the movement speed of the game object, and the movement information is displayed by operating the operation control of the game object movement, which can effectively reduce the number of controls on the display interface, so that the user can operate more flexibly and improve the user's gaming experience.
[0129] The following combination Figure 6 , taking the application of the game object control method provided in this specification in a racing game scene as an example, the game object control method is further described. Figure 6 A processing flow chart of a game object control method provided in an embodiment of this specification is shown, which specifically includes the following steps:
[0130] Step S602: receiving an operation instruction submitted by a user for an operation control.
[0131] Step S604: determining a control movement trajectory corresponding to the operation control according to the operation instruction.
[0132] Step S606, determining the moving distance and deflection angle corresponding to the operating control according to the control movement trajectory.
[0133] Step S608, determining the vehicle moving speed corresponding to the moving distance and the vehicle moving direction corresponding to the deflection angle according to the mapping relationship between the preset moving information and the control moving parameters.
[0134] Step S610, taking the vehicle moving speed as the corresponding moving speed of the game vehicle, and the vehicle moving direction as the corresponding moving direction of the game vehicle, to constitute the movement information of the game vehicle in the game scene.
[0135] Step S612, receiving a touch command submitted by a user for an operation control; wherein the operation control is used to control the movement of a game vehicle in a game scene.
[0136] Step S614, determining a panel display area according to the touch command, and displaying the mobile control panel in the panel display area.
[0137] Step S616: upon receiving a panel movement instruction submitted by the user for the mobile control panel, display the mobile control panel in the target panel display area according to the panel movement instruction.
[0138] Step S618, receiving the target value input by the user through the mobile control panel.
[0139] Step S620, converting the target value according to the attribute information corresponding to the game vehicle, and determining the movement parameter according to the conversion result.
[0140] Step S622, updating the movement information of the game vehicle in the game scene based on the movement parameters.
[0141] Step S624: determine the first control element and the second control element corresponding to the operation control.
[0142] Step S626: determining the element position of the first control element within the second control element according to the updated movement information.
[0143] Step S628: display the updated movement information through the first control element located at the element position.
[0144] To sum up, in order to make it more convenient for users to control game objects, the mobile control panel can be displayed in response to the touch instructions submitted by the user to the operation controls, and the movement information of the game object in the game scene can be updated according to the movement parameters input by the user through the mobile control panel, and finally the updated movement information is displayed through the operation controls, and the game object will move in the game scene according to the updated movement information; the movement information of the game object can be changed by customizing the input of movement parameters, which makes it more convenient for users to flexibly control the movement speed of the game object, and the movement information is displayed by operating the operation controls for operating the movement of the game object, which can effectively reduce the number of controls on the display interface, allowing users to operate more flexibly and improve the user's gaming experience.
[0145] Corresponding to the above method embodiment, this specification also provides a game object control device embodiment, Figure 7 FIG. 1 shows a schematic diagram of the structure of a game object control device provided in an embodiment of the present specification. Figure 7 As shown, the device is applied to a client and includes:
[0146] The display panel module 702 is configured to display a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene;
[0147] An updating parameter module 704 is configured to update the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel;
[0148] The information display module 706 is configured to display the updated movement information through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0149] In an optional embodiment, the display panel module 702 is further configured as follows:
[0150] Receive the touch instruction submitted by the user for the operation control; determine the panel display area according to the touch instruction, and display the mobile control panel in the panel display area; when receiving the panel movement instruction submitted by the user for the mobile control panel, display the mobile control panel in the target panel display area according to the panel movement instruction.
[0151] In an optional embodiment, the updating parameter module 704 is further configured to:
[0152] Receive the target value input by the user through the mobile control panel; convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result; update the movement information of the game object in the game scene based on the movement parameter.
[0153] In an optional embodiment, the display information module 706 is further configured to:
[0154] Determine a first control element and a second control element corresponding to the operation control; determine an element position of the first control element within the second control element according to the updated movement information; and display the updated movement information through the first control element located at the element position.
[0155] In an optional embodiment, the display information module 706 is further configured to:
[0156] Determine the control effect information corresponding to the operation control according to the updated movement information; update the display of the operation control based on the control effect information to obtain a target operation control; and display the updated movement information through the target operation control.
[0157] In an optional embodiment, the game object control device further includes:
[0158] The control module is configured to receive an operation instruction submitted by the user for the operation control; determine a control movement trajectory corresponding to the operation control according to the operation instruction; and determine a moving direction and a moving speed corresponding to the game object according to the control movement trajectory as movement information of the game object in the game scene.
[0159] In an optional embodiment, the control module is further configured to:
[0160] Determine the moving distance and deflection angle corresponding to the operating control according to the control movement trajectory; determine the object moving speed corresponding to the moving distance and the object moving direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameters; use the object moving speed as the moving speed corresponding to the game object, and use the object moving direction as the moving direction corresponding to the game object.
[0161] In an optional embodiment, the updating parameter module 704 is further configured to:
[0162] Receive the movement value input by the user through the movement control panel; when the movement value is less than a numerical threshold, determine the movement parameter based on the movement value, and update the movement information of the game object in the game scene according to the movement parameter; when the movement value is greater than or equal to the numerical threshold, determine the movement parameter according to the numerical threshold, and update the movement information of the game object in the game scene according to the movement parameter.
[0163] In an optional embodiment, the updating parameter module 704 is further configured to:
[0164] The pressure parameters are collected by a pressure sensor configured in the client, wherein the pressure sensor has a positional correspondence with the mobile control panel; based on a conversion relationship between a preset pressure parameter and a preset mobile parameter, a target mobile parameter corresponding to the pressure parameter is determined as the mobile parameter input by the user through the mobile control panel.
[0165] The game object control device provided in the present specification can display a mobile control panel in response to a touch instruction submitted by the user to an operation control in order to make it more convenient for the user to control the game object, and update the movement information of the game object in the game scene according to the movement parameters input by the user through the mobile control panel, and finally display the updated movement information through the operation control, and the game object will move in the game scene according to the updated movement information; the movement information of the game object can be changed by customizing the input of movement parameters, which makes it more convenient for the user to flexibly control the movement speed of the game object, and the movement information is displayed by operating the operation control of the game object movement, which can effectively reduce the number of controls on the display interface, so that the user can operate more flexibly and improve the user's gaming experience.
[0166] The above is a schematic scheme of a game object control device of this embodiment. It should be noted that the technical scheme of the game object control device and the technical scheme of the game object control method described above belong to the same concept, and the details of the technical scheme of the game object control device that are not described in detail can all be referred to the description of the technical scheme of the game object control method described above.
[0167] Figure 8 The structure block diagram of a computing device 800 provided according to an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.
[0168] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0169] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0170] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 800 may also be a mobile or stationary server.
[0171] The processor 820 is used to execute the following computer executable instructions:
[0172] Displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene;
[0173] According to the movement parameters input by the user through the movement control panel, the movement information of the game object in the game scene is updated;
[0174] The updated movement information is displayed through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0175] Optionally, the displaying of the mobile control panel in response to a touch instruction submitted by the user for the operation control includes:
[0176] Receiving the touch control instruction submitted by the user for the operation control;
[0177] Determine a panel display area according to the touch command, and display the mobile control panel in the panel display area;
[0178] When a panel movement instruction submitted by the user for the mobile control panel is received, the mobile control panel is displayed in a target panel display area according to the panel movement instruction.
[0179] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0180] receiving a target value input by the user through the mobile control panel;
[0181] Convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result;
[0182] The movement information of the game object in the game scene is updated based on the movement parameters.
[0183] Optionally, displaying the updated movement information through the operation control includes:
[0184] Determine a first control element and a second control element corresponding to the operation control;
[0185] determining an element position of the first control element within the second control element according to the updated movement information;
[0186] The updated movement information is displayed through a first control element located at the element position.
[0187] Optionally, displaying the updated movement information through the operation control includes:
[0188] Determine the control effect information corresponding to the operation control according to the updated movement information;
[0189] Based on the control effect information, the operation control is displayed and updated to obtain a target operation control;
[0190] The updated movement information is displayed through the target operation control.
[0191] Optionally, before the step of displaying the mobile control panel in response to the touch instruction submitted by the user for the operation control is performed, the method further includes:
[0192] Receiving an operation instruction submitted by the user for the operation control;
[0193] Determine a control movement trajectory corresponding to the operation control according to the operation instruction;
[0194] The moving direction and moving speed corresponding to the game object are determined according to the moving trajectory of the control as the movement information of the game object in the game scene.
[0195] Optionally, determining the moving direction and moving speed corresponding to the game object according to the moving trajectory of the control includes:
[0196] Determine the moving distance and deflection angle corresponding to the operating control according to the moving trajectory of the control;
[0197] Determine the object movement speed corresponding to the movement distance and the object movement direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameter;
[0198] The object moving speed is used as the moving speed corresponding to the game object, and the object moving direction is used as the moving direction corresponding to the game object.
[0199] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0200] receiving a movement value input by the user through the movement control panel;
[0201] In the case where the movement value is less than the value threshold, determining the movement parameter based on the movement value, and updating the movement information of the game object in the game scene according to the movement parameter;
[0202] In the case where the movement value is greater than or equal to a numerical threshold, the movement parameter is determined according to the numerical threshold, and the movement information of the game object in the game scene is updated according to the movement parameter.
[0203] Optionally, the determination of the movement parameter includes:
[0204] Collecting pressure parameters through a pressure sensor configured in the client, wherein the pressure sensor and the mobile control panel have a position corresponding relationship;
[0205] According to the conversion relationship between the preset pressure parameter and the preset movement parameter, the target movement parameter corresponding to the pressure parameter is determined as the movement parameter input by the user through the movement control panel.
[0206] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned game object control method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned game object control method.
[0207] An embodiment of the present specification further provides a computer-readable storage medium storing computer instructions, which are used when executed by a processor to:
[0208] Displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene;
[0209] According to the movement parameters input by the user through the movement control panel, the movement information of the game object in the game scene is updated;
[0210] The updated movement information is displayed through the operation control, wherein the game object moves in the game scene according to the updated movement information.
[0211] Optionally, the displaying of the mobile control panel in response to a touch instruction submitted by the user for the operation control includes:
[0212] Receiving the touch control instruction submitted by the user for the operation control;
[0213] Determine a panel display area according to the touch command, and display the mobile control panel in the panel display area;
[0214] When a panel movement instruction submitted by the user for the mobile control panel is received, the mobile control panel is displayed in a target panel display area according to the panel movement instruction.
[0215] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0216] receiving a target value input by the user through the mobile control panel;
[0217] Convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result;
[0218] The movement information of the game object in the game scene is updated based on the movement parameters.
[0219] Optionally, displaying the updated movement information through the operation control includes:
[0220] Determine a first control element and a second control element corresponding to the operation control;
[0221] determining an element position of the first control element within the second control element according to the updated movement information;
[0222] The updated movement information is displayed through a first control element located at the element position.
[0223] Optionally, displaying the updated movement information through the operation control includes:
[0224] Determine the control effect information corresponding to the operation control according to the updated movement information;
[0225] Based on the control effect information, the operation control is displayed and updated to obtain a target operation control;
[0226] The updated movement information is displayed through the target operation control.
[0227] Optionally, before the step of displaying the mobile control panel in response to the touch instruction submitted by the user for the operation control is performed, the method further includes:
[0228] Receiving an operation instruction submitted by the user for the operation control;
[0229] Determine a control movement trajectory corresponding to the operation control according to the operation instruction;
[0230] The moving direction and moving speed corresponding to the game object are determined according to the moving trajectory of the control as the movement information of the game object in the game scene.
[0231] Optionally, determining the moving direction and moving speed corresponding to the game object according to the moving trajectory of the control includes:
[0232] Determine the moving distance and deflection angle corresponding to the operating control according to the moving trajectory of the control;
[0233] Determine the object movement speed corresponding to the movement distance and the object movement direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameter;
[0234] The object moving speed is used as the moving speed corresponding to the game object, and the object moving direction is used as the moving direction corresponding to the game object.
[0235] Optionally, updating the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes:
[0236] receiving a movement value input by the user through the movement control panel;
[0237] In the case where the movement value is less than the value threshold, determining the movement parameter based on the movement value, and updating the movement information of the game object in the game scene according to the movement parameter;
[0238] In the case where the movement value is greater than or equal to a numerical threshold, the movement parameter is determined according to the numerical threshold, and the movement information of the game object in the game scene is updated according to the movement parameter.
[0239] Optionally, the determination of the movement parameter includes:
[0240] Collecting pressure parameters through a pressure sensor configured in the client, wherein the pressure sensor and the mobile control panel have a position corresponding relationship;
[0241] According to the conversion relationship between the preset pressure parameter and the preset movement parameter, the target movement parameter corresponding to the pressure parameter is determined as the movement parameter input by the user through the movement control panel.
[0242] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned game object control method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned game object control method.
[0243] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0244] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0245] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.
[0246] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0247] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A game object control method, characterized in that: Applied to the client, including: Displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene; Receiving a target value manually input by the user through the mobile control panel; converting the target value according to the attribute information corresponding to the game object, and determining a movement parameter according to the conversion result; updating the movement information of the game object in the game scene based on the movement parameter; determining the movement parameter, including: collecting pressure parameters through a pressure sensor configured in the client, wherein the pressure sensor and the mobile control panel have a position corresponding relationship; determining a target movement parameter corresponding to the pressure parameter according to a conversion relationship between a preset pressure parameter and a preset movement parameter, as the movement parameter input by the user through the mobile control panel; The updated movement information is displayed through the operation control, wherein the game object moves in the game scene according to the updated movement information.
2. The method according to claim 1, characterized in that The method of displaying a mobile control panel in response to a touch instruction submitted by a user for an operation control comprises: Receiving the touch control instruction submitted by the user for the operation control; Determine a panel display area according to the touch command, and display the mobile control panel in the panel display area; When a panel movement instruction submitted by the user for the mobile control panel is received, the mobile control panel is displayed in a target panel display area according to the panel movement instruction.
3. The method according to claim 1, characterized in that The displaying of updated movement information through the operation control includes: Determine a first control element and a second control element corresponding to the operation control; determining an element position of the first control element within the second control element according to the updated movement information; The updated movement information is displayed through a first control element located at the element position.
4. The method according to claim 1, characterized in that: The displaying of updated movement information through the operation control includes: Determine the control effect information corresponding to the operation control according to the updated movement information; Based on the control effect information, the operation control is displayed and updated to obtain a target operation control; The updated movement information is displayed through the target operation control.
5. The method according to claim 1, characterized in that: Before the step of displaying the mobile control panel in response to the touch instruction submitted by the user to the operation control is performed, the method further includes: Receiving an operation instruction submitted by the user for the operation control; Determine a control movement trajectory corresponding to the operation control according to the operation instruction; The moving direction and moving speed corresponding to the game object are determined according to the moving trajectory of the control as the movement information of the game object in the game scene.
6. The method according to claim 5, characterized in that The determining the moving direction and moving speed corresponding to the game object according to the moving trajectory of the control includes: Determine the moving distance and deflection angle corresponding to the operating control according to the moving trajectory of the control; Determine the object movement speed corresponding to the movement distance and the object movement direction corresponding to the deflection angle according to the mapping relationship between the preset movement information and the control movement parameter; The object moving speed is used as the moving speed corresponding to the game object, and the object moving direction is used as the moving direction corresponding to the game object.
7. The method according to any one of claims 1 to 6, characterized in that: The updating of the movement information of the game object in the game scene according to the movement parameters input by the user through the movement control panel includes: receiving a movement value input by the user through the movement control panel; In the case where the movement value is less than the value threshold, determining the movement parameter based on the movement value, and updating the movement information of the game object in the game scene according to the movement parameter; In the case where the movement value is greater than or equal to a numerical threshold, the movement parameter is determined according to the numerical threshold, and the movement information of the game object in the game scene is updated according to the movement parameter.
8. A game object control device, characterized in that: Applied to the client, including: A display panel module, configured to display a mobile control panel in response to a touch instruction submitted by a user for an operation control, wherein the operation control is used to control the movement of a game object in a game scene; An update parameter module is configured to receive a target value manually input by the user through the mobile control panel; convert the target value according to the attribute information corresponding to the game object, and determine the movement parameter according to the conversion result; update the movement information of the game object in the game scene based on the movement parameter; the determination of the movement parameter includes: collecting pressure parameters through a pressure sensor configured in the client, wherein the pressure sensor has a position corresponding relationship with the mobile control panel; according to the conversion relationship between the preset pressure parameter and the preset movement parameter, determining the target movement parameter corresponding to the pressure parameter as the movement parameter input by the user through the mobile control panel; The information display module is configured to display the updated movement information through the operation control, wherein the game object moves in the game scene according to the updated movement information.
9. A computing device, characterized in that It comprises a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the method described in any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Game control method, device, equipment, medium and program product
CN114392554A