Search

CN-121971854-A - Game control method and device

CN121971854ACN 121971854 ACN121971854 ACN 121971854ACN-121971854-A

Abstract

The disclosure provides a game control method, which comprises the steps of controlling a game interface of a overlooking view angle to be displayed in a display interface, wherein the game interface comprises a controlled area, the controlled area comprises a plurality of unit areas, the game interface comprises a virtual object, the virtual object is located in a first unit area in the plurality of unit areas, an image of a user is acquired, a user gesture in the image is identified, a direction trigger operation and/or a displacement trigger operation aiming at the virtual object are determined based on the user gesture, the virtual object is controlled to be switched from a current direction to a target direction in response to the direction trigger operation, the target direction is one of leftwards, rightwards, forwards and backwards of the overlooking view angle, and the virtual object is controlled to move to an adjacent second unit area from the first unit area along the current direction in response to the displacement trigger operation. The present disclosure thus enables multidirectional control, fully freeing up operational flexibility.

Inventors

  • HE ZIYI
  • WANG YANJING

Assignees

  • 北京金鼎汉克科技发展有限公司

Dates

Publication Date
20260505
Application Date
20260209

Claims (11)

  1. 1. A game control method, the method comprising: Controlling a game interface of a overlook view angle to be displayed in a display interface, wherein the game interface comprises a controlled area, the controlled area comprises a plurality of unit areas, the game interface comprises a virtual object, and the virtual object is positioned in a first unit area in the plurality of unit areas; Acquiring an image of a user, and identifying a user gesture in the image; determining a direction trigger operation and/or a displacement trigger operation for the virtual object based on the user gesture; in response to the direction trigger operation, controlling the virtual object to be switched from a current direction to a target direction, wherein the target direction is one of left, right, forward and backward in a top view; and controlling the virtual object to move from the first unit area to an adjacent second unit area along the current direction in response to the displacement triggering operation.
  2. 2. The method of claim 1, wherein the acquiring an image of the user, identifying a user gesture in the image, comprises: And identifying human body key point coordinates in the image, and determining the user gesture based on the human body key point coordinates.
  3. 3. The method of claim 2, wherein the user gestures comprise a first set of gestures and a second set of gestures, The determining a direction trigger operation and/or a displacement trigger operation for the virtual object based on the user gesture includes: determining that the direction triggers operation when the user gesture includes a first set of gestures; determining that the displacement triggers operation when the user gesture includes a second set of gestures; when the user gesture includes the first set of gestures and the second set of gestures, a direction trigger operation and a displacement trigger operation are determined.
  4. 4. A method according to claim 3, wherein the first set of poses comprises left hand lift, right hand lift, two hand lift, squat; The determining that the direction triggers operation when the user gesture includes a first set of gestures includes: when the gesture of the user is the left hand flat lift, determining that the direction triggering operation is left-oriented operation; when the gesture of the user is the right hand flat lift, determining that the direction triggering operation is right-oriented operation; When the gesture of the user is the upward lifting of the two hands, determining that the direction triggering operation is forward operation; Determining the direction trigger operation as a backward operation when the user gesture is squat; The responding to the direction triggering operation controls the virtual object to be switched from the current direction to the target direction, and comprises the following steps: Responsive to the left-facing operation, the target is facing left; responsive to the right-facing operation, the target is facing right; in response to the forward facing operation, the target is forward facing; in response to the backward facing operation, the target direction is backward.
  5. 5. The method of claim 4, wherein the determining the user gesture based on the human keypoint coordinates comprises: Based on the left wrist coordinate and the left shoulder coordinate in the human body key point coordinates, if the left wrist abscissa is positioned at the left side of the left shoulder abscissa and the difference distance between the left wrist ordinate and the left shoulder ordinate is in a first offset range, determining that the gesture of the user is left hand flat lifting; Based on the right wrist coordinate and the right shoulder coordinate in the human body key point coordinate, if the right wrist abscissa is positioned on the right side of the right shoulder abscissa and the difference distance between the right wrist ordinate and the right shoulder ordinate is in the first offset range, determining that the gesture of the user is right hand flat lifting; Judging based on a left wrist coordinate, a right wrist coordinate and a head coordinate in the human body key point coordinates, and determining that the user gesture is upward lifting of both hands if the left wrist ordinate and the right wrist ordinate are both greater than the head ordinate; and judging based on the central position coordinates between the left hip and the right hip in the human body key point coordinates, if the central position abscissa variation range is smaller than a first distance and the central position ordinate falling range is larger than a second distance in a first time range, determining that the user gesture is squatting.
  6. 6. The method of claim 4, wherein the determining that the direction triggers operation when the user gesture comprises a first set of gestures comprises: And when the user gesture simultaneously comprises at least two gestures in the first group of gestures, selecting the gesture with the highest priority as the user gesture according to the preset priority.
  7. 7. A method according to claim 3, wherein said determining that the displacement triggers operation when the user gesture comprises a second set of gestures comprises: And when the gesture of the user is stepping, determining the displacement triggering operation.
  8. 8. The method of claim 7, wherein the determining the user gesture based on the human keypoint coordinates comprises: And judging based on the left ankle coordinate and the right ankle coordinate in the human body key point coordinates, if the ordinate of the first ankle is higher than the ordinate of the second ankle and the ordinate of the second ankle is higher than the ordinate of the first ankle in the second time range, determining that the user gesture is a step.
  9. 9. A game control device, the device comprising: the display control module is used for controlling a game interface for displaying a overlooking view angle in the display interface, wherein the game interface comprises a controlled area, the controlled area comprises a plurality of unit areas, the game interface comprises a virtual object, and the virtual object is positioned in a first unit area in the plurality of unit areas; the recognition module is used for acquiring an image of a user and recognizing the gesture of the user in the image; the triggering module is used for determining a direction triggering operation and/or a displacement triggering operation aiming at the virtual object based on the user gesture; The first control module is used for responding to the direction triggering operation and controlling the virtual object to be switched from the current direction to a target direction, wherein the target direction is one of left, right, forward and backward in a overlook view; and the second control module is used for responding to the displacement triggering operation and controlling the virtual object to move from the first unit area to the adjacent second unit area along the current direction.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the game control method as claimed in any one of claims 1 to 8 at run-time.
  11. 11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the game control method of any of the claims 1 to 8.

Description

Game control method and device Technical Field The present disclosure relates to the field of computer technologies, and in particular, to a game control method and apparatus. Background The somatosensory game in the current market mostly adopts a first-person visual angle, does not have a mature overlook 2D scheme, and has obvious visual angle limitation. The limited view angle leads to narrow view field of players, the players cannot globally observe scenes, the operation fault tolerance is low, and visual fatigue is easy to cause. Due to the limitation of visual angles, the character can only move in one direction, a multidimensional somatosensory instruction cannot be adapted, and the somatosensory operation flexibility is not exerted, so that the character lacks multidirectional animation adaptation, the movement and the animation are easy to be disjointed, the substitution sense is weak, and the game experience is poor. In view of the above problems, no effective solution has been proposed at present. Disclosure of Invention To overcome the problems in the related art, the present disclosure provides a game control method and apparatus. According to a first aspect of embodiments of the present disclosure, there is provided a method of game control, the method comprising: Controlling a game interface of a overlook view angle to be displayed in a display interface, wherein the game interface comprises a controlled area, the controlled area comprises a plurality of unit areas, the game interface comprises a virtual object, and the virtual object is positioned in a first unit area in the plurality of unit areas; Acquiring an image of a user, and identifying a user gesture in the image; determining a direction trigger operation and/or a displacement trigger operation for the virtual object based on the user gesture; in response to the direction trigger operation, controlling the virtual object to be switched from a current direction to a target direction, wherein the target direction is one of left, right, forward and backward in a top view; and controlling the virtual object to move from the first unit area to an adjacent second unit area along the current direction in response to the displacement triggering operation. Optionally, the acquiring the image of the user, and identifying the gesture of the user in the image includes: And identifying human body key point coordinates in the image, and determining the user gesture based on the human body key point coordinates. Optionally, the user gestures include a first set of gestures and a second set of gestures, The determining a direction trigger operation and/or a displacement trigger operation for the virtual object based on the user gesture includes: determining that the direction triggers operation when the user gesture includes a first set of gestures; determining that the displacement triggers operation when the user gesture includes a second set of gestures; when the user gesture includes the first set of gestures and the second set of gestures, a direction trigger operation and a displacement trigger operation are determined. Optionally, the first set of gestures includes left hand flat lift, right hand flat lift, two hand up lift, squat down; The determining that the direction triggers operation when the user gesture includes a first set of gestures includes: when the gesture of the user is the left hand flat lift, determining that the direction triggering operation is left-oriented operation; when the gesture of the user is the right hand flat lift, determining that the direction triggering operation is right-oriented operation; When the gesture of the user is the upward lifting of the two hands, determining that the direction triggering operation is forward operation; Determining the direction trigger operation as a backward operation when the user gesture is squat; The responding to the direction triggering operation controls the virtual object to be switched from the current direction to the target direction, and comprises the following steps: Responsive to the left-facing operation, the target is facing left; responsive to the right-facing operation, the target is facing right; in response to the forward facing operation, the target is forward facing; in response to the backward facing operation, the target direction is backward. Optionally, the determining the user gesture based on the human keypoint coordinates includes: Based on the left wrist coordinate and the left shoulder coordinate in the human body key point coordinates, if the left wrist abscissa is positioned at the left side of the left shoulder abscissa and the difference distance between the left wrist ordinate and the left shoulder ordinate is in a first offset range, determining that the gesture of the user is left hand flat lifting; Based on the right wrist coordinate and the right shoulder coordinate in the human body key point coordinate, if the right wrist abscissa is posit