Method, apparatus, terminal device, medium and program product for game control
By associating the virtual camera with the virtual sphere in football mobile games, controlling the offset and locking of the virtual camera in response to the deflection operation of the terminal device, the problem of inflexible scene screen extension is solved and the user experience is improved.
Patent Information
- Application Number
- CN202211180546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-09-26
AI Technical Summary
In football mobile games, the scene screen extension is not flexible enough, resulting in poor user experience, especially in fast-paced matches that are prone to accidentally trigger core operations.
By associating the virtual camera with the virtual sphere in the game scene, the virtual camera offset is controlled in response to the deflection operation of the terminal device, and the offset scene screen is displayed in the graphical user interface, supporting a locked state to keep the screen extended, and returning to the right operation to return to the original position.
It realizes flexible extension of the game scene screen, avoids accidentally triggering core operations, ensures that the controlled virtual characters are always in the screen, and improves the gameplay experience of ball mobile games.
Smart Images

Figure CN115501591B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the technical field of terminals, and particularly relates to a method, device, terminal device, medium, and program product for game control. Background Art
[0002] With the development of terminal technology, more and more mobile games are supported by terminal devices, and users' requirements for the experience of mobile games are also getting higher and higher.
[0003] Generally, the field of football mobile games is too large, and the content displayed in the picture is limited. It is inconvenient for players to observe the running positions of players outside the picture, and they can only observe the overall situation through the mini-map. The mini-map includes information about 24 players and the ball. In a fast-paced game, it is too stressful to interpret the mini-map.
[0004] Currently, in football competing games, the virtual camera lens can be bound to the football, and the picture perspective can be automatically extended according to the position of the ball; in some moba mobile games, the device can extend the picture perspective by the user manually dragging the screen. However, if the dragging method is adopted in football games, it is easy to conflict with core experience operations, such as accidentally triggering operations such as passing the ball.
[0005] Therefore, the current method of extending the scene picture may lead to a poor user game experience and inflexible picture extension in football competing games. Summary of the Invention
[0006] The purpose of the embodiments of the present disclosure is to provide a method, device, terminal device, medium, and program product for game control, which can solve the problems of poor user game experience and inflexible picture extension in ball competing games.
[0007] To solve the above technical problems, the present disclosure is implemented as follows:
[0008] In a first aspect, the embodiments of the present disclosure provide a method for game control. A graphical user interface is provided through a terminal device. The graphical user interface includes a scene picture of a game scene captured by a virtual camera. The game scene includes a controlled virtual character and a virtual sphere controlled by the terminal device. The method includes: associating the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere; in response to a deflection operation on the terminal device, controlling the virtual camera to deflect, and displaying in the graphical user interface a scene picture of the game scene including the controlled virtual character captured after the virtual camera deflects; in response to a straightening operation on the terminal device, controlling the virtual camera to return to the position where it was before deflection.
[0009] Optionally, after controlling the virtual camera to be offset, the method further includes: controlling the virtual camera to enter a locked state, and locking the scene image of the game scene captured after the virtual lens is offset as the scene image of the graphical user interface.
[0010] Optionally, before controlling the virtual camera to be offset, the method further includes: determining that the deflection angle of the terminal device is greater than or equal to a preset threshold.
[0011] Optionally, controlling the virtual camera to be offset includes: controlling the virtual camera to be offset according to the deflection angle of the terminal device; wherein, the maximum position of the virtual camera offset is the position corresponding to the virtual camera when the controlled virtual character reaches the boundary position of the scene image.
[0012] Optionally, in response to a deflection operation on the terminal device, controlling the virtual camera to be offset includes: in response to an operation of the terminal device deflecting around the Y axis, controlling the virtual camera to be offset along the X axis, wherein the X axis and the Y axis are perpendicular to each other, and the plane formed by the X axis and the Y axis is parallel to the display screen of the terminal device.
[0013] Optionally, in response to an operation of the terminal device deflecting around the Y axis, controlling the virtual camera to be offset along the X axis includes: in response to an operation of the terminal device deflecting clockwise around the Y axis, controlling the virtual camera to be offset in the negative direction of the X axis; in response to an operation of the terminal device deflecting counterclockwise around the Y axis, controlling the virtual camera to be offset in the positive direction of the X axis.
[0014] Optionally, when controlling the virtual camera to return to the position before the offset, the method further includes: releasing the locked state of the virtual camera to resume controlling the movement of the virtual camera according to the position change of the virtual sphere.
[0015] In a second aspect, an embodiment of the present disclosure provides a game control device. A graphical user interface is provided through a terminal device. The graphical user interface includes a scene image of a game scene captured by a virtual camera. The game scene includes a controlled virtual character and a virtual sphere controlled by the terminal device. The game control device includes: an association module, a control module, and a display module; the association module is configured to associate the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere; the control module is configured to, in response to a deflection operation on the terminal device, control the virtual camera to be offset; the display module is configured to, in response to a deflection operation on the terminal device, display in the graphical user interface the scene image of the game scene including the controlled virtual character captured after the virtual camera is offset; the control module is further configured to, in response to a return-to-normal operation on the terminal device, control the virtual camera to return to the position before the offset.
[0016] Optionally, the game control device further includes: a locking module; the locking module is configured to, after the control module controls the virtual camera to be deflected, control the virtual camera to enter a locked state and lock the scene image of the game scene captured after the virtual lens is deflected as the scene image of the graphical user interface.
[0017] Optionally, the game control device further includes: a determining module; the determining module is configured to, before the control module controls the virtual camera to be deflected: determine that the angle of deflection of the terminal device is greater than or equal to a preset threshold.
[0018] Optionally, the control module is specifically configured to: control the virtual camera to be deflected according to the angle of deflection of the terminal device; wherein, the maximum position of the deflection of the virtual camera is the position corresponding to the virtual camera when the controlled virtual character reaches the boundary position of the scene image.
[0019] Optionally, the control module is specifically configured to: in response to an operation of deflecting the terminal device around the Y axis, control the virtual camera to be deflected along the X axis, wherein the X axis and the Y axis are perpendicular to each other, and the plane formed by the X axis and the Y axis is parallel to the display screen of the terminal device.
[0020] Optionally, the control module is specifically configured to: in response to an operation of deflecting the terminal device around the Y axis in the clockwise direction, control the virtual camera to be deflected along the negative direction of the X axis; in response to an operation of deflecting the terminal device around the Y axis in the counterclockwise direction, control the virtual camera to be deflected along the positive direction of the X axis.
[0021] Optionally, the locking module is further configured to: when the control module controls the virtual camera to return to the position before deflection, release the locked state of the virtual camera to resume controlling the movement of the virtual camera according to the position change of the virtual sphere.
[0022] In a third aspect, an embodiment of the present disclosure provides a terminal device, which includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the game control method described in the first aspect are implemented.
[0023] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the game control method described in the first aspect are implemented.
[0024] In a fifth aspect, an embodiment of the present disclosure provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the game control method described in the first aspect.
[0025] In a sixth aspect, an embodiment of the present disclosure provides a computer program product including instructions, which, when running on a computer, cause the computer to execute the steps of the game control method described in the first aspect.
[0026] In an embodiment of the present disclosure, when providing a graphical user interface through a terminal device, the graphical user interface includes a scene picture of a game scene captured by a virtual camera. In the case where the game scene includes a controlled virtual character controlled by the terminal device and a virtual sphere, the terminal device may associate the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere; the terminal device may detect whether the terminal device is deflected. In the case of deflection, the terminal device may respond to the deflection operation of the terminal device, control the virtual camera to offset, and display in the graphical user interface the scene picture of the game scene including the controlled virtual character captured after the virtual camera is offset; if a straightening operation for the terminal device is detected, the terminal device may, based on the straightening operation, control the camera to return to the position where it was before deflection. That is, the scene picture of the game scene can be deflected based on the dynamic deflection of the terminal device, that is, the user can dynamically deflect the terminal device according to needs to manually extend the scene picture, and the pictures before and after deflection both include the controlled virtual character, thereby making the extension of the scene picture of the game scene more flexible. Without the user having to interpret the mini-map in the scene picture to observe the whole field situation, the user can timely observe the running positions of the virtual characters on the field. On the one hand, the user does not need to manually drag the screen to extend the picture, which can avoid accidentally triggering core experience type instructions such as passing the ball; on the other hand, compared with the method of automatically extending the scene picture based on the position of the virtual sphere, it can be ensured that the controlled virtual character is always in the scene picture when the scene picture is extended, avoiding the problem that when the user observes the running positions of other controlled virtual characters in the virtual stadium by deflecting the terminal device, the current controlled virtual character cannot be found, resulting in untimely control or control errors and delaying the battle opportunity during a very fast-paced game. Thereby, the game experience of ball mobile games can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a schematic flowchart of a game control method provided by an embodiment of the present disclosure;
[0028] Figure 2 is a schematic diagram of a deflection angle provided by an embodiment of the present disclosure;
[0029] Figure 3 is a schematic diagram of a coordinate system provided by an embodiment of the present disclosure;
[0030] Figure 4 is one of the schematic diagrams of a game interface provided by an embodiment of the present disclosure;
[0031] Figure 5 The second schematic diagram of the game interface provided by the embodiments of the present disclosure;
[0032] Figure 6 The third schematic diagram of the game interface provided by the embodiments of the present disclosure;
[0033] Figure 7 A schematic diagram of the positional relationship of a target straight line provided by the embodiments of the present disclosure;
[0034] Figure 8 A possible structural schematic diagram of a game control device provided by the embodiments of the present disclosure;
[0035] Figure 9 A possible structural schematic diagram of a terminal device provided by the embodiments of the present disclosure;
[0036] Figure 10 A hardware schematic diagram of a terminal device provided by the embodiments of the present disclosure. Detailed implementation manners
[0037] Next, the technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all implementations. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present disclosure.
[0038] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.
[0039] Next, the game control method provided by the embodiments of the present disclosure will be described in detail in conjunction with the accompanying drawings through specific embodiments and their application scenarios.
[0040] In the game control method provided by the embodiments of the present disclosure, a graphical user interface is provided through a terminal device. The graphical user interface includes a scene picture of a game scene captured by a virtual camera. The game scene includes a controlled virtual character and a virtual sphere controlled by the terminal device.
[0041] Figure 1The flowchart of a method for game control provided by an embodiment of the present disclosure is shown as Figure 1 shown, and the method includes the following S101 to S103:
[0042] S101. The terminal device associates the virtual camera with the position of the virtual sphere in the game scene, so as to control the movement of the virtual camera according to the position change of the virtual sphere.
[0043] For example, when the terminal device displays the scene picture of the game scene of a ball mobile game, it can detect whether the terminal device is deflected; for example, the terminal device can determine whether the terminal device is deflected based on the somatosensory technology; it can detect whether the terminal device is deflected according to the data of the angle change detected by the built-in gyroscope.
[0044] Exemplarily, the deflection of the terminal device indicates the dynamic deflection of the terminal device controlled when the user holds the terminal device in a stable posture. For example, when the user holds the terminal device, the screen may have a certain angle with the horizontal plane. When the user needs to extend the scene picture of the game scene, the user can control the terminal device to deflect in a deflection direction.
[0045] For example, if the picture of the entire virtual stadium is too large and cannot be completely displayed on one screen, for example, only part of the virtual stadium can be displayed, such as at least one direction in the horizontal or vertical direction cannot be completely displayed, the user can extend the scene picture by deflecting the terminal device.
[0046] It should be noted that in the embodiment of the present disclosure, the extension of the scene picture by the terminal device can indicate the deflection of the virtual camera, the display size of the scene picture remains unchanged, and the display content in the scene picture is extended.
[0047] S102. In response to the deflection operation on the terminal device, control the virtual camera to offset, and display in the graphical user interface the scene picture of the game scene including the controlled virtual character captured after the virtual camera offsets.
[0048] It can be understood that based on the controlled virtual character for picture deflection, the terminal device can control the controlled virtual character to always be displayed in the scene picture of the game scene, which can avoid the situation that the controlled virtual character is not within the displayed scene picture after the scene picture is extended, resulting in inaccurate control.
[0049] S103. In response to the straightening operation on the terminal device, the terminal device controls the virtual camera to return to the position before the offset.
[0050] For example, the straightening operation can be in the opposite direction to the deflection operation.
[0051] It can be understood that after the scene screen of the game scene is deflected by the user, the user can observe the game information such as the movement positions of various virtual characters in the virtual stadium according to the deflected scene screen. After that, the user can perform a straightening operation on the terminal device, which can trigger the terminal device to control the virtual camera to return to the position where it was before the deflection, so that the user can perform subsequent triggering operations in a timely manner according to the observed game information.
[0052] In the game control method provided by the embodiments of the present disclosure, when providing a graphical user interface through a terminal device, the graphical user interface includes a scene screen of a game scene captured by a virtual camera, and the game scene includes a controlled virtual character and a virtual sphere controlled by the terminal device. The terminal device can associate the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere; the terminal device can detect whether the terminal device is deflected. In the case of deflection, the terminal device can respond to the deflection operation on the terminal device, control the virtual camera to offset, and display in the graphical user interface the scene screen of the game scene including the controlled virtual character captured after the virtual camera is offset; if a straightening operation on the terminal device is detected, the terminal device can control the camera to return to the position where it was before the deflection based on this straightening operation. That is, the scene screen of the game scene can be deflected based on the dynamic deflection of the terminal device, that is, the user can dynamically deflect the terminal device according to needs to manually extend the scene screen, and the screens before and after the deflection both include the controlled virtual character, so that the extension of the scene screen of the game scene is more flexible. Without the user having to interpret the mini-map in the scene screen to observe the whole field situation, the user can timely observe the running positions of the virtual characters on the field. On the one hand, the user does not need to manually drag the screen to extend the screen, which can avoid accidentally triggering core experience commands such as passing the ball; on the other hand, compared with the method of automatically extending the scene screen based on the position of the virtual sphere, it can ensure that the controlled virtual character is always in the scene screen when the scene screen is extended, avoiding the problem that when the user observes the running positions of other controlled virtual characters in the virtual stadium by deflecting the terminal device, the current controlled virtual character cannot be found, resulting in untimely or incorrect control and delaying the opportunity in the case of a very fast game rhythm, thereby improving the game experience of ball mobile games.
[0053] Optionally, in the game control method provided by the embodiments of the present disclosure, after controlling the virtual camera to offset, the following S104 may further be included:
[0054] S104: The terminal device controls the virtual camera to enter a locked state and locks the scene screen of the game scene captured after the virtual lens is offset as the scene screen of the graphical user interface.
[0055] It should be noted that in the embodiments of the present disclosure, the locked state indicates that the scene captured by the virtual camera after offset is maintained without following the movement of the virtual sphere, that is, when the virtual sphere moves, the virtual camera no longer follows the movement.
[0056] It can be understood that when the virtual sphere moves and the virtual camera is not in the locked state, the virtual camera follows the movement of the virtual sphere, and the scene captured by the virtual camera changes as the virtual camera moves.
[0057] Based on this solution, after the terminal device controls the virtual camera to be offset in response to a deflection operation on the terminal device, the terminal device can control the virtual camera to enter the locked state, that is, when the virtual sphere in the game scene moves, the virtual camera no longer follows the movement, and the terminal device locks the game scene captured after the virtual camera is offset as the scene of the graphical user interface, so that the user can observe the movement of the virtual character that was originally not in the scene in the game scene based on the corresponding scene after the terminal device is deflected.
[0058] Optionally, in the method for game control provided by the embodiments of the present disclosure, before controlling the virtual camera to be offset, the following S105 may further be included:
[0059] S105: The terminal device determines that the deflection angle of the terminal device is greater than or equal to a preset threshold.
[0060] Wherein, the preset threshold is used to determine whether the user uses the deflection of the terminal device to trigger the terminal device to start controlling the virtual camera to deflect to extend the scene of the game scene.
[0061] In the embodiments of the present disclosure, the terminal device can determine a buffer area and a deflection area based on the deflection angle of the terminal device. The deflection angle corresponding to the buffer area can indicate a mis-trigger prevention area. If it is detected that the deflection angle is within this area, the terminal device does not control the virtual camera to be offset, that is, the scene is not extended according to the deflection angle of the terminal. The deflection angle within the deflection area can be an area for triggering the virtual camera to be offset. If it is detected that the deflection angle of the terminal device is within this area, the terminal device can control the virtual camera to be offset.
[0062] Figure 2 For a schematic diagram of a deflection angle provided by the embodiments of the present disclosure, as Figure 2As shown in the figure, it is assumed that the stable posture of the user's handheld terminal device is that the screen is parallel to the horizontal plane. Taking the straight line L0 parallel to the plane where the screen of the terminal device is located as a reference, if the terminal device deflects clockwise or counterclockwise along L0, for example, the deflection angle is in the range of [0, α], that is, the range between L0 - L1 and the range between L0 - L2, then the terminal device determines that the deflection angle is within the buffer zone, and the terminal device does not control the virtual camera to offset; if the terminal device continues to deflect clockwise or counterclockwise along L0, for example, the deflection angle is equal to or greater than α, then the terminal device determines that the deflection angle is located in the deflection zone, and the terminal device can control the virtual camera to offset.
[0063] Optionally, the deflection zone can be a continuous range between L1 - L2, or a discontinuous range between L1 - L2. For example, within a quadrant, when the deflection zone within the quadrant + the buffer zone within the quadrant < 90°, there are two discontinuous deflection zones between L1 - L2.
[0064] Specifically, if the deflection angle is greater than or equal to the target angle, the terminal device displays the scene picture after offsetting the virtual camera based on the deflection angle for the scene picture. A possible example is that when the deflection angle is within a preset angle range, the deflection distance of the deflection angle is proportional to the scene picture of the game scene.
[0065] Exemplarily, the target angle can be the demarcation angle between the above buffer region and the deflection region. That is, when the deflection angle has not reached the target angle, the terminal device can not perform virtual camera offset, and when the deflection angle begins to be greater than the target angle, the terminal device determines that it can start to perform virtual camera offset.
[0066] It can be understood that the preset angle range is the effective angle range within which the terminal device can perform virtual camera offset based on the deflection angle.
[0067] Optionally, the preset angle range can be a dynamically changing range or a static range, and the embodiments of the present disclosure do not make specific limitations on this.
[0068] For example, it can be determined whether the preset angle range is dynamically changing based on the display position of the controlled virtual character on the screen.
[0069] Exemplarily, when the controlled virtual character is located in the middle of the screen, the preset angle range can be a relatively large fixed range, and the terminal device can control the virtual camera to deflect left or right; when the controlled virtual character is already located at the screen boundary, the preset angle range can be a dynamically decreasing range, and the terminal device can only extend the picture in the direction away from the screen boundary; when the controlled virtual character moves from the screen boundary position towards the center of the screen, the preset angle range can be a dynamically increasing range.
[0070] It should be noted that, in the embodiments of the present disclosure, the terminal device may also trigger and enter the locked state after determining that the deflection angle is greater than or equal to the target angle. The embodiments of the present disclosure do not make specific limitations on this.
[0071] Based on this solution, the terminal device can determine whether the terminal device has a deflection. When the terminal device determines that the terminal device has a deflection, the terminal device can determine the magnitude of the deflection angle. When the deflection angle is not greater than the target angle, the terminal device can determine that the user may only be adjusting the posture or other situations that cause the device to deflect, rather than needing to extend the scene picture. Therefore, the terminal device can determine not to perform virtual camera offset operations on the scene picture, thereby avoiding the picture extension caused by accidental touch. When the deflection angle is greater than the target angle, the terminal device can determine that the user needs to extend the scene picture, and then the terminal device can deflect the virtual camera, so that the scene picture can be automatically extended accurately according to the user's needs.
[0072] Optionally, in the game control method provided by the embodiments of the present disclosure, the "controlling the virtual camera to perform an offset" in S102 above may be specifically executed through the following S11:
[0073] S11. The terminal device controls the virtual camera to perform an offset according to the deflection angle of the terminal device.
[0074] Among them, the maximum position of the virtual camera offset is the position corresponding to the virtual camera when the controlled virtual character reaches the boundary position of the scene picture.
[0075] Exemplarily, when the terminal device has a deflection, the terminal device may display the captured scene picture after the virtual camera is offset based on the deflection angle. Among them, the captured scene picture after the virtual camera is offset includes the controlled virtual character.
[0076] In a possible example, the greater the deflection angle of the terminal device, the more the virtual camera is offset, and the smaller the deflection angle of the terminal device, the less the virtual camera is offset.
[0077] It should be noted that if the controlled virtual character is already located at the boundary of the screen display area, the deflection of the virtual camera may not be continued to avoid the loss of the controlled virtual character. If the controlled virtual character is already located at the boundary of the screen display area and the user switches the controlled virtual character, the deflection of the virtual camera may be performed based on whether the switched controlled virtual character is at the boundary of the display area.
[0078] Exemplarily, in the game control method provided by the embodiments of the present disclosure, when there is a deflection, the terminal device synchronously displays the deflected scene picture based on the change of the deflection angle.
[0079] For example, as the deflection angle of the terminal device increases, the offset of the virtual camera gradually increases, and the changes in the extended image seen by the user also gradually increase.
[0080] Exemplarily, the virtual camera can move to the right, left, downward, upward, upper right, lower right, upper left, and lower left based on the deflection angle of the terminal device.
[0081] For example, assuming that the user controls the right side of the terminal device to deflect downward, the viewing angle moves to the right, and the right side of the terminal device is deflected downward by 15°, the viewing angle moves synchronously to the right, and the scene picture moves synchronously to the right by 1 / 5. The right side is deflected downward by another 15 degrees, and the viewing angle moves synchronously to the right again, and the scene picture can continue to move synchronously to the right by 1 / 5.
[0082] Based on this solution, when the terminal device is deflected, the terminal device can control the virtual camera to offset based on the change in the deflection angle, and display the scene image captured by the virtual camera after the offset, so that the user can accurately control the extension of the scene image as needed.
[0083] Optionally, in the game control method provided by the embodiment of the present disclosure, the above-mentioned S102 may be specifically executed by the following S12:
[0084] S12: In response to the operation of deflecting the terminal device around the Y axis, the terminal device controls the virtual camera to shift along the X axis.
[0085] The X-axis and the Y-axis are perpendicular to each other, and a plane formed by the X-axis and the Y-axis is parallel to the display screen of the terminal device.
[0086] Figure 3 A schematic diagram of a coordinate system provided in an embodiment of the present disclosure is provided, wherein the plane where the display screen of the terminal device is located is used as an example for explanation. Figure 3 As shown in , taking the horizontal screen state of the terminal as an example, a coordinate system can be established with the X axis parallel to the longer side of the screen and the Y axis parallel to the shorter side of the screen. Figure 3 If the Y-axis is deflected in the image, the virtual camera can be controlled to deflect along the X-axis.
[0087] It should be noted that, in the embodiment of the present disclosure, if an operation of the terminal device deflecting around an X-axis is detected, the terminal device controls the virtual camera to shift along the Y-axis.
[0088] Based on this solution, the terminal device can respond to the operation of deflecting the terminal device around the Y axis, and the terminal device can control the virtual camera to offset along the X axis, so as to extend the scene image according to the user's usage habits.
[0089] Optionally, in the game control method provided by the embodiments of the present disclosure, the above S12 may be specifically executed through the following S13 and S14:
[0090] S13. In response to an operation for the terminal device to deflect clockwise around the Y axis, the terminal device controls the virtual camera to offset in the negative direction of the X axis.
[0091] S14. In response to an operation for the terminal device to deflect counterclockwise around the Y axis, the terminal device controls the virtual camera to offset in the positive direction of the X axis.
[0092] Exemplarily, in combination with Figure 3 , if the user controls the terminal device to deflect to the left, the terminal device can control the virtual camera to deflect to the left, and the scene picture displayed on the screen also extends to the left; if the user controls the terminal device to deflect to the right, the terminal device controls the virtual camera to deflect to the right, and the scene picture displayed on the screen also extends to the right. If the user controls the terminal device to deflect away from himself, the terminal device can control the virtual camera to deflect upward, and the scene picture displayed on the screen also extends upward. If the user controls the terminal device to deflect towards himself, the terminal device can control the virtual camera to deflect downward, and the scene picture displayed on the screen also extends downward.
[0093] Exemplarily, taking the case where the user holds the terminal device horizontally as an example, the terminal device controls the scene picture to deflect to the left virtual camera or the right virtual camera for illustration. Figure 4 is a schematic diagram of a scene picture provided by the embodiments of the present disclosure. The user holds the terminal device horizontally. Among them, the controlled virtual character 400 is the virtual character currently controlled by the user. The terminal device can control the scene picture to deflect to the left to view the running positions of the players in the left picture. For example, the user can control the top side of the terminal device to deflect downward, or control the bottom side of the terminal device to deflect upward, or deflect both at the same time. Assuming that the relative position of the controlled virtual character 400 in the virtual stadium remains unchanged, the deflected picture can be Figure 5 shown in the picture. After deflection, the display position of the controlled virtual character 400 on the screen is compared with Figure 4 shown in the screen display position in, and it has moved a certain distance to the right. Similarly, the terminal device can control the scene picture to deflect to the right virtual camera to view the running positions of the virtual players in the left picture. For example, the user can control the top side of the terminal device to deflect upward, or control the bottom side of the terminal device to deflect downward, or deflect both at the same time. Assuming that the relative position of the controlled virtual character 400 in the virtual stadium remains unchanged, the deflected picture can be Figure 5 shown in the picture. After deflection, the display position of the controlled virtual character 400 on the screen is compared with Figure 4At the screen display position shown in the figure, it has been moved a certain distance to the left.
[0094] Based on this solution, the terminal device can determine the offset direction of the virtual camera according to the direction in which the terminal device deflects around the Y axis, so that the extension direction of the scene picture can be determined based on the offset direction of the virtual camera.
[0095] In a possible example, in the game control method provided by the embodiments of the present disclosure, the terminal device can also determine the offset direction of the virtual camera based on the target center line, where the target center line is a straight line perpendicular to the screen of the terminal device. If the target center line deflects towards the target side and the deflected angle is greater than the target angle, the terminal device controls the virtual camera to offset towards the target side based on the deflection angle.
[0096] Exemplarily, Figure 7 As a schematic diagram of a target center line provided by the embodiments of the present disclosure, as Figure 7 shown, the terminal device can determine whether to perform virtual camera offset based on the change in the deflection angle of the straight line L3 perpendicular to the screen plane. Taking the left side as an example, when the initial state of the terminal device is the angle indicated by L0, when the screen of the terminal device deflects beyond L1, the terminal device can start virtual camera offset. The range of the included angle between L1 and L3 can be the above preset angle range, where α + β = 90°.
[0097] Exemplarily, it can also be deflected based on the direction of the straight line parallel to the screen of the terminal device. The embodiments of the present disclosure do not make specific limitations on this.
[0098] It can be understood that the terminal device can determine whether the terminal device deflects based on a fixed center line. The included angle between the initial position and the end position of this center line is the deflection angle, and when this included angle is greater than the target angle, the terminal device can perform offset of the scene picture.
[0099] Optionally, in the game control method provided by the embodiments of the present disclosure, when controlling the virtual camera to return to the position before offset, the following S106 may further be included:
[0100] S106: The terminal device releases the locked state of the virtual camera to restore controlling the movement of the virtual camera according to the position change of the virtual sphere.
[0101] It can be understood that in the embodiments of the present disclosure, if the user observes the deflected scene picture by deflecting the terminal device and then returns to the original position for operation, and if a return-to-normal operation triggered by the user is detected, the terminal device can control the virtual camera to return to the position before this deflection and release the locked state of the virtual camera, that is, no longer deflect the virtual camera based on the deflection of the terminal device, but continue to control the movement of the virtual camera based on the position change of the virtual sphere, and the scene picture no longer extends based on the deflection of the terminal device, so as to facilitate the user to continue operating based on the original position.
[0102] It should be noted that for the game control method provided in the embodiments of the present disclosure, the execution subject can be a game control device, or a control module for executing the game control method in the game control device. In the embodiments of the present disclosure, the game control method is executed by the game control device as an example to illustrate the game control device provided in the embodiments of the present disclosure.
[0103] Figure 8 FIG. 7 is a schematic structural diagram of a possible game control device provided in the embodiments of the present disclosure. A graphical user interface is provided through a terminal device. The graphical user interface includes a scene picture of a game scene captured by a virtual camera. The game scene includes a controlled virtual character and a virtual sphere controlled by the terminal device, as Figure 8 shown, the game control device 800 includes: an association module 801, a control module 802, and a display module 803; the association module 801 is used to associate the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere; the control module 802 is used to control the virtual camera to offset in response to a deflection operation on the terminal device; the display module 803 is used to display, in the graphical user interface, the scene picture of the game scene including the controlled virtual character captured after the virtual camera offsets in response to a deflection operation on the terminal device; the control module 802 is further used to control the virtual camera to return to the position before the offset in response to a return-to-normal operation on the terminal device.
[0104] Optionally, the game control device further includes: a locking module; the locking module is used to control the virtual camera to enter a locked state after the control module controls the virtual camera to offset, and lock the scene picture of the game scene captured after the virtual lens offsets as the scene picture of the graphical user interface.
[0105] Optionally, the game control device further includes: a determination module; the determination module is used to, before the control module controls the virtual camera to offset: determine that the deflection angle of the terminal device is greater than or equal to a preset threshold.
[0106] Optionally, the control module is specifically configured to: control the virtual camera to offset according to the deflection angle of the terminal device; wherein, the maximum position of the virtual camera offset is the position corresponding to the virtual camera when the controlled virtual character reaches the boundary position of the scene picture.
[0107] Optionally, the control module is specifically configured to: respond to an operation of deflecting the terminal device around the Y-axis, and control the virtual camera to offset along the X-axis, wherein the X-axis and the Y-axis are perpendicular to each other, and the plane formed by the X-axis and the Y-axis is parallel to the display screen of the terminal device.
[0108] Optionally, the control module is specifically configured to: respond to an operation of deflecting the terminal device around the Y-axis in the clockwise direction, and control the virtual camera to offset in the negative direction of the X-axis; respond to an operation of deflecting the terminal device around the Y-axis in the counterclockwise direction, and control the virtual camera to offset in the positive direction of the X-axis.
[0109] Optionally, the locking module is further configured to: when the control module controls the virtual camera to return to the position before the offset, release the locked state of the virtual camera to resume controlling the movement of the virtual camera according to the position change of the virtual sphere.
[0110] Embodiments of the present disclosure provide a game control device. When providing a graphical user interface through a terminal device, the graphical user interface includes a scene image of a game scene captured by a virtual camera. In the case where the game scene includes a controlled virtual character controlled by the terminal device and a virtual sphere, the terminal device can associate the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the position change of the virtual sphere. The terminal device can detect whether the terminal device is deflected. In the case of deflection, the terminal device can respond to the deflection operation on the terminal device, control the virtual camera to offset, and display in the graphical user interface the scene image of the game scene including the controlled virtual character captured after the virtual camera offsets. If a rectification operation on the terminal device is detected, the terminal device can, based on this rectification operation, control the camera to return to the position where it was before deflection. That is, the scene image of the game scene can be deflected based on the dynamic deflection of the terminal device, that is, the user can dynamically deflect the terminal device according to needs to manually extend the scene image, and the images before and after deflection both include the controlled virtual character, so that the extension of the scene image of the game scene is more flexible. Without the user having to interpret the mini-map in the scene image to observe the whole field situation, the user can timely observe the running positions of the virtual characters on the field. On the one hand, the user does not need to manually drag the screen to extend the image, which can avoid accidentally triggering core experience commands such as passing the ball. On the other hand, compared with the method of automatically extending the scene image based on the position of the virtual sphere, it can ensure that the controlled virtual character is always in the scene image when the scene image extends, avoiding the problem that when the user observes the running positions of other controlled virtual characters in the virtual stadium by deflecting the terminal device, the current controlled virtual character cannot be found, resulting in untimely or incorrect control and delaying the fighter opportunity in the case of a very fast game rhythm. Thus, the game experience of ball mobile games can be improved.
[0111] The game control device in embodiments of the present disclosure can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook, or a PDA (personal digital assistant), etc. The non-mobile terminal device can be a server, a NAS (Network Attached Storage), a PC (personal computer), a TV (television), a teller machine, or a self-service machine, etc. Embodiments of the present disclosure do not make specific limitations.
[0112] The device for game control in the embodiments of the present disclosure can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present disclosure.
[0113] The device for game control provided by the embodiments of the present disclosure can implement Figures 1 to 7 each process implemented by the method embodiments. To avoid repetition, details are not described herein again.
[0114] Optionally, as Figure 9 shown, the embodiments of the present disclosure further provide a terminal device 900, including a processor 901, a memory 902, a program or instruction stored on the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, it implements each process of the method embodiments for the above game control, and can achieve the same technical effects. To avoid repetition, details are not described herein again.
[0115] It should be noted that the terminal device in the embodiments of the present disclosure includes the above-mentioned mobile terminal device and non-mobile terminal device.
[0116] Figure 10 FIG. is a schematic hardware structure diagram of a terminal device for implementing the embodiments of the present disclosure.
[0117] The terminal device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc.
[0118] Those skilled in the art can understand that the terminal device 1000 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 1010 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 10 The structure of the terminal device shown in FIG. does not limit the terminal device. The terminal device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which are not described herein again.
[0119] Among them, the processor 1010 is configured to associate the virtual camera with the position of the virtual sphere in the game scene, so as to control the movement of the virtual camera according to the position change of the virtual sphere; the processor 1010 is further configured to respond to the deflection operation on the terminal device and control the virtual camera to deflect; the display unit 1006 is configured to display, in the graphical user interface, a scene image of the game scene including the controlled virtual character captured after the virtual camera deflects; the processor 1010 is further configured to respond to the straightening operation on the terminal device and control the virtual camera to return to the position before deflection.
[0120] An embodiment of the present disclosure provides a terminal device. When providing a graphical user interface through the terminal device, the graphical user interface includes a scene image of a game scene captured by a virtual camera, and the game scene includes a controlled virtual character controlled by the terminal device and a virtual sphere, the terminal device can associate the virtual camera with the position of the virtual sphere in the game scene, so as to control the movement of the virtual camera according to the position change of the virtual sphere; the terminal device can detect whether the terminal device is deflected, and when deflected, the terminal device can respond to the deflection operation on the terminal device, control the virtual camera to deflect, and display, in the graphical user interface, a scene image of the game scene including the controlled virtual character captured after the virtual camera deflects; if a straightening operation on the terminal device is detected, the terminal device can, based on the straightening operation, control the camera to return to the position before deflection. That is, the scene image of the game scene can be deflected based on the dynamic deflection of the terminal device, that is, the user can dynamically deflect the terminal device according to the demand to manually extend the scene image, and the images before and after deflection both include the controlled virtual character, so that the extension of the scene image of the game scene is more flexible. Without the user having to interpret the mini-map in the scene image to observe the whole field, the user can timely observe the running positions of the virtual characters on the field. On the one hand, the user does not need to manually drag the screen to extend the scene image, which can avoid accidentally triggering core experience commands such as passing the ball; on the other hand, compared with the method of automatically extending the scene image based on the position of the virtual sphere, it can ensure that the controlled virtual character is always in the scene image when the scene image is extended, avoiding the problem that when the user observes the running positions of other controlled virtual characters in the virtual stadium by deflecting the terminal device, the current controlled virtual character cannot be found, resulting in untimely or incorrect control and delaying the opportunity to win the game in a very fast-paced game. Therefore, the gaming experience of ball-based mobile games can be improved.
[0121] It should be understood that in the embodiments of the present disclosure, the input unit 1004 may include a GPU (Graphics Processing Unit) 1041 and a microphone 1042. The GPU 1041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here. The memory 1009 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 1010 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1010.
[0122] The embodiments of the present disclosure further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the method embodiment of the above game control and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0123] Among them, the processor is the processor in the terminal device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer ROM (Read-Only Memory), RAM (Random Access Memory), magnetic disk, or optical disc, etc.
[0124] The embodiments of the present disclosure further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the method embodiment of the above game control and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0125] It should be understood that the chip mentioned in the embodiments of the present disclosure may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0126] It should be noted that in this text, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and apparatuses in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0127] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
[0128] The embodiments of the present disclosure have been described above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present disclosure, those of ordinary skill in the art can also make many forms without departing from the purpose of the present disclosure and the scope protected by the claims, and all of them fall within the protection scope of the present disclosure.
Claims
1. A method for game control, characterized in that, Providing a graphical user interface through a terminal device, the graphical user interface including a scene picture of a game scene captured by a virtual camera, the game scene including a controlled virtual character controlled by the terminal device and a virtual sphere, the method comprising: Associating the position of the virtual camera with the position of the virtual sphere in the game scene to control the movement of the virtual camera according to the change in the position of the virtual sphere; In response to a deflection operation on the terminal device, controlling the virtual camera to be deflected and displaying, in the graphical user interface, a scene picture of the game scene including the controlled virtual character captured after the virtual camera is deflected; After controlling the virtual camera to be deflected, controlling the virtual camera to enter a locked state and locking the scene picture of the game scene captured after the virtual lens is deflected as the scene picture of the graphical user interface, the locked state indicating that the scene picture captured by the deflected virtual camera is not moved following the movement of the virtual sphere; In response to a straightening operation on the terminal device, controlling the virtual camera to return to the position before deflection so as to perform subsequent triggering operations based on the scene game information before deflection.
2. The method according to claim 1, characterized in that Before controlling the virtual camera to be deflected, the method further comprises: Determining that the angle of deflection of the terminal device is greater than or equal to a preset threshold.
3. The method according to claim 1, wherein The controlling the virtual camera to be deflected includes: Controlling the virtual camera to be deflected according to the angle of deflection of the terminal device; wherein the maximum position of the deflection of the virtual camera is the position corresponding to the virtual camera when the controlled virtual character reaches the boundary position of the scene picture.
4. The method according to claim 1, wherein The responding to a deflection operation on the terminal device and controlling the virtual camera to be deflected includes: Responding to an operation of deflecting the terminal device around the Y axis and controlling the virtual camera to be deflected along the X axis; wherein the X axis and the Y axis are perpendicular to each other, and the plane formed by the X axis and the Y axis is parallel to the display screen of the terminal device.
5. The method according to claim 4, wherein The responding to an operation of deflecting the terminal device around the Y axis and controlling the virtual camera to be deflected along the X axis includes: Responding to an operation of deflecting the terminal device around the Y axis in the clockwise direction and controlling the virtual camera to be deflected in the negative direction of the X axis; Responding to an operation of deflecting the terminal device around the Y axis in the counterclockwise direction and controlling the virtual camera to be deflected in the positive direction of the X axis.
6. The method according to claim 1, wherein When controlling the virtual camera to return to the position before deflection, the method further comprises: Releasing the locked state of the virtual camera to resume controlling the movement of the virtual camera according to the change in the position of the virtual sphere.
7. A game control device, characterized in that, Providing a graphical user interface through a terminal device, the graphical user interface including a scene picture of a game scene captured by a virtual camera, the game scene including a controlled virtual character controlled by the terminal device and a virtual sphere, the game control device comprising: an association module, a control module, and a display module; The associated module is used to associate the position of the virtual camera with the position of the virtual sphere in the game scene, so as to control the movement of the virtual camera according to the position change of the virtual sphere; The control module is used to respond to the deflection operation on the terminal device and control the virtual camera to deflect; After controlling the virtual camera to deflect, the control module is further used to control the virtual camera to enter a locked state, and lock the scene picture of the game scene captured after the virtual lens deflects as the scene picture of the graphical user interface. The locked state indicates that the scene picture captured by the deflected virtual camera is not followed by the movement of the virtual sphere; The display module is used to respond to the deflection operation on the terminal device and display, in the graphical user interface, the scene picture of the game scene captured after the virtual camera deflects and including the controlled virtual character; The control module is further used to respond to the straightening operation on the terminal device and control the virtual camera to return to the position before deflection, so as to perform subsequent trigger operations based on the scene game information before deflection.
8. A terminal device, characterized in that, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the game control method according to any one of claims 1 to 6 are implemented.
9. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, the steps of the game control method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising instructions, characterized in that, When it runs on a computer, it causes the computer to execute the steps of the game control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, device and equipment for adjusting scene visual angles, and storage medium
CN111135576A