CN115869611A - Somatosensory game method based on climbing action - Google Patents

Somatosensory game method based on climbing action Download PDF

Info

Publication number
CN115869611A
CN115869611A CN202211638412.9A CN202211638412A CN115869611A CN 115869611 A CN115869611 A CN 115869611A CN 202211638412 A CN202211638412 A CN 202211638412A CN 115869611 A CN115869611 A CN 115869611A
Authority
CN
China
Prior art keywords
climbing
acceleration data
arm
instruction
motion sensing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211638412.9A
Other languages
Chinese (zh)
Inventor
黄豪
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shimi Network Technology Co ltd
Original Assignee
Shenzhen Shimi Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shimi Network Technology Co ltd filed Critical Shenzhen Shimi Network Technology Co ltd
Priority to CN202211638412.9A priority Critical patent/CN115869611A/en
Publication of CN115869611A publication Critical patent/CN115869611A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a climbing action-based somatosensory game method, a climbing action-based somatosensory game device and a computer-readable storage medium, wherein the climbing action-based somatosensory game method comprises the following steps of: after the motion sensing game is started, mapping an appointed operation key on the bound motion sensing equipment; acquiring key operation data and acceleration data from the bound somatosensory equipment; generating a climbing instruction according to the key operation data and the acceleration data; and controlling the game role to perform matched climbing action according to the climbing instruction. The motion sensing game method has the advantages of being low in hardware requirement of the motion sensing device, high in precision, strong in operability and the like.

Description

Somatosensory game method based on climbing action
Technical Field
The invention relates to the technical field of motion sensing games, in particular to a climbing action-based motion sensing game method, device and equipment and a computer readable storage medium.
Background
At present, most somatosensory games realize the input of game instructions through acceleration data and angular velocity data acquired by an IMU (inertial measurement Unit) sensor. However, some motion sensing devices are only provided with a gravity sensor, so that the motion sensing devices can only collect gravity acceleration data, and a player cannot normally play a motion sensing game by using the motion sensing devices.
Therefore, it is desirable to provide a motion sensing game method for implementing motion sensing instruction input based on a gravity sensor, so as to reduce the hardware requirements of the motion sensing game.
Disclosure of Invention
The embodiment of the application provides a motion sensing game method based on climbing actions, and aims to reduce hardware requirements of motion sensing games.
In order to achieve the above object, an embodiment of the present application provides a motion sensing game method based on a climbing action, including:
after the motion sensing game is started, mapping an appointed operation key on the bound motion sensing equipment;
acquiring key operation data and acceleration data from the bound somatosensory equipment;
generating a climbing instruction according to the key operation data and the acceleration data;
and controlling the game role to perform matched climbing action according to the climbing instruction.
In one embodiment, generating a climbing instruction according to the key operation data and the acceleration data includes:
determining the trigger state of the operation key according to the key operation data;
and generating a climbing instruction according to the triggering state of the operation key and the acceleration data.
In an embodiment, generating a climbing instruction according to the trigger state of the operation key and the acceleration data includes:
when the operation key is triggered, generating a role climbing instruction according to the acceleration data;
and when the operation key is not triggered, generating a role arm movement instruction according to the acceleration data.
In one embodiment, when the operation key is triggered, generating a character climbing instruction according to the acceleration data includes:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the designated operation of moving the arm downwards, generating a character climbing-up instruction;
and if the player finishes the specified operation of moving the arm upwards, generating a downward climbing instruction of the character.
In an embodiment, when the operation key is not triggered, generating a character arm movement instruction according to the acceleration data includes:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the specified operation of moving the arm downwards, generating a character arm downwards moving instruction;
and if the player finishes the specified operation of moving the arm upwards, generating an arm upwards moving instruction of the character.
In one embodiment, determining whether the player has completed the designated arm movement operation according to the acceleration data includes:
and judging whether the player finishes the appointed arm movement operation or not according to the z-axis acceleration data.
In one embodiment, determining whether the player has completed the specified arm movement operation based on the z-axis acceleration data includes:
and calculating the duration of the arm moving upwards or downwards by the player according to the z-axis acceleration data, and if the duration is not less than a set time threshold, judging that the arm moving operation of the arm moving upwards or downwards is completed by the player.
In order to achieve the above object, an embodiment of the present application further provides a motion sensing game device based on a climbing action, including:
the mapping module is used for mapping the appointed operation keys on the bound motion sensing equipment;
the acquisition module is used for acquiring key operation data and acceleration data from the bound somatosensory equipment;
the instruction generating module is used for generating a climbing instruction according to the key operation data and the acceleration data;
and the execution module is used for controlling the game role to perform matched climbing actions according to the climbing instruction.
In order to achieve the above object, an embodiment of the present application further provides a motion sensing game device based on a climbing action, including a memory, a processor, and a motion sensing game program based on a climbing action, which is stored in the memory and can be run on the processor, where the processor executes the motion sensing game program based on a climbing action, so as to implement the motion sensing game method based on a climbing action according to any one of the above items.
In order to achieve the above object, an embodiment of the present application further provides a computer-readable storage medium, where a body-sensing game program based on a climbing action is stored on the computer-readable storage medium, and when executed by a processor, the body-sensing game program based on a climbing action implements the body-sensing game method based on a climbing action according to any one of the above items.
According to the motion sensing game method based on the climbing action, the operation keys are mapped on the motion sensing device, and the climbing instruction required by the game is generated according to the key operation data and the acceleration data, so that the motion sensing control of the motion sensing game can be realized only by adopting the acceleration data and the key operation data detected by the gravity sensor, and the hardware requirement of the motion sensing game on the motion sensing device can be reduced. In addition, the climbing instruction is generated by combining the key operation data and the acceleration data, on one hand, more complex climbing instruction input can be realized, and on the other hand, the instruction identification precision can be improved. Therefore, compared with the traditional motion sensing game method adopting gyroscope data, the motion sensing game method has the advantages of low hardware requirement of motion sensing equipment, high precision, strong operability and the like.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a block diagram of a motion sensing game device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a motion sensing game method based on climbing actions according to an embodiment of the present invention;
fig. 3 is a block diagram of a motion sensing game device based on climbing according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of "first," "second," and "third," etc. do not denote any order, and such words are to be interpreted as names.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server 1 (also called a motion sensing game device based on a climbing action) in a hardware operating environment according to an embodiment of the present invention.
The server provided by the embodiment of the invention comprises equipment with a display function, such as Internet of things equipment, an intelligent air conditioner with a networking function, an intelligent lamp, an intelligent power supply, AR/VR equipment with a networking function, an intelligent sound box, an automatic driving automobile, a PC, a smart phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the server 1 includes: memory 11, processor 12, and network interface 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the server 1, for example a hard disk of the server 1. The memory 11 may also be an external storage device of the server 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the server 1.
Further, the memory 11 may also include an internal storage unit of the server 1 and also an external storage device. The memory 11 may be used to temporarily store data that has been output or is to be output, as well as application software installed in the server 1 and various types of data, such as codes of the motion sensing game program 10 based on the climbing motion.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 11 or Processing data, such as executing the motion sensing game program 10 based on the climbing action.
The network interface 13 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), typically used for establishing a communication connection between the server 1 and other electronic devices.
The network may be the internet, a cloud network, a wireless fidelity (Wi-Fi) network, a Personal Area Network (PAN), a Local Area Network (LAN), and/or a Metropolitan Area Network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of: transmission control protocol and internet protocol (TCP/IP), user Datagram Protocol (UDP), hypertext transfer protocol (HTTP), file Transfer Protocol (FTP), zigBee, EDGE, IEEE 802.11, optical fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communications, wireless Access Points (APs), device-to-device communications, cellular communication protocol, and/or bluetooth (Blue Tooth) communication protocol, or a combination thereof.
Optionally, the server may further comprise a user interface, which may include a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also include a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is used for displaying information processed in the server 1 and for displaying a visualized user interface.
Fig. 1 shows only a server 1 with components 11-13 and a body-sensory game program 10 based on a climbing action, it being understood by a person skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the server 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
In this embodiment, the processor 12 may be configured to call the somatosensory game program based on the climbing action stored in the memory 11, and perform the following operations:
after the motion sensing game is started, mapping an appointed operation key on the bound motion sensing equipment;
acquiring key operation data and acceleration data from the bound somatosensory equipment;
generating a climbing instruction according to the key operation data and the acceleration data;
and controlling the game role to perform matched climbing action according to the climbing instruction.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
determining the trigger state of the operation key according to the key operation data;
and generating a climbing instruction according to the triggering state of the operation key and the acceleration data.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
when the operation key is triggered, generating a role climbing instruction according to the acceleration data;
and when the operation key is not triggered, generating a role arm movement instruction according to the acceleration data.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the designated operation of moving the arm downwards, generating a character climbing-up instruction;
and if the player finishes the specified operation of moving the arm upwards, generating a downward climbing instruction of the character.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the specified operation of moving the arm downwards, generating a character arm downwards moving instruction;
and if the player finishes the specified operation of moving the arm upwards, generating an arm upwards moving instruction of the character.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
and judging whether the player finishes the appointed arm movement operation or not according to the z-axis acceleration data.
In one embodiment, the processor 12 may be configured to call the somatosensory game program stored in the memory 11 based on the climbing action, and perform the following operations:
and calculating the duration of the arm moving upwards or downwards by the player according to the z-axis acceleration data, and if the duration is not less than a set time threshold, judging that the arm moving operation of the arm moving upwards or downwards is completed by the player.
Based on the hardware framework of the motion sensing game device based on the climbing action, the embodiment of the motion sensing game method based on the climbing action is provided. The invention discloses a motion sensing game method based on climbing actions, and aims to reduce the hardware requirement of the motion sensing game.
Referring to fig. 2, fig. 2 is an embodiment of a climbing action-based motion sensing game method according to the present invention, where the climbing action-based motion sensing game method includes the following steps:
and S10, after the motion sensing game is started, mapping the appointed operation keys on the bound motion sensing equipment.
Among these, the motion sensing game is a motion sensing game related to a climbing motion, which requires a player to perform a climbing motion using a motion sensing device to expand the game. Through the motion sensing game, a player can control game characters to climb up and down through motion sensing actions. Therefore, the player can feel the interest of the climbing body-sensing game more truly.
Note that the motion sensing game may be a local application, an HTML5 applet, a web application, or the like. Specifically, the motion sensing game runs on a terminal, and the terminal can be a desktop computer, a notebook computer, a game host, a portable game host, a smart phone, a tablet computer, a smart watch, a smart television and the like.
The motion sensing device is a device capable of detecting motion sensing data of a player, and generally, the motion sensing device is configured to include a six-axis IMU sensor including a three-axis accelerometer and a three-axis gyroscope, and the six-axis IMU sensor detects the motion sensing data of the player by detecting a change in three-axis acceleration and a change in three-axis angular velocity of the player.
In the technical scheme of the application, the acceleration data acquired by the terminal from the somatosensory device are triaxial acceleration data directly acquired by an accelerometer (also called a gravity sensor). The three-axis acceleration data are x-axis acceleration data, y-axis acceleration data and z-axis acceleration data respectively. The x-axis is an acceleration axis in the horizontal direction, the z-axis is an acceleration axis in the vertical direction, and the y-axis is an acceleration axis in the front-rear direction. In this way, even if the body sensing device is provided with only a gravity sensor, the input of the climbing instruction can be completed through the body sensing action.
Optionally, the motion sensing device is configured to be wearable, and the form thereof includes, but is not limited to, the following: bracelets, watches, game consoles, smart phones, and the like.
Specifically, before playing a game, the motion sensing device needs to establish a communication connection with the terminal (i.e., with the terminal Zhang Ding), where a wired connection or a wireless connection may be established between the motion sensing device and the terminal. For example, when the somatosensory device establishes a wired connection with the terminal, the wired connection can be based on at least one of a USB2.0 protocol, a USB3.0 protocol, a thunder and lightning 3 protocol and a thunder and lightning 4 protocol; and when the somatosensory device is wirelessly connected with the terminal, the somatosensory device can be based on at least one of a Bluetooth protocol, a WiFi protocol, an infrared protocol, a 2.4G communication protocol and an NFC protocol.
Further, in the technical solution defined in the present application, the motion sensing device needs to have a touch display module to display a graphical user interface required by the game, and the touch display module can display the required touch display module and also has a touch function, so that the user can input a key instruction in a touch manner.
Specifically, when a user starts a motion sensing game based on a climbing action on a terminal, the terminal generates key mapping data based on preset operation keys of the current motion sensing game, and then transmits the key mapping data to the motion sensing device based on a communication mode. And after receiving the key mapping, the somatosensory device displays the corresponding operation key on the corresponding graphical user interface.
It should be understood that by activating the specified operation key, the player can input an instruction which is difficult to input depending on acceleration data, such as a shooting instruction, an acceleration instruction, and the like. In the technical scheme of the application, the operation key is used for distinguishing different motion states of a player so as to realize the input of climbing instructions of different types.
It can be understood that, by mapping the designated operation keys on the motion sensing device, a player can input a specific control instruction by using a common motion sensing device (such as a smart watch, a smart bracelet and the like), without purchasing a specific gamepad, thereby greatly reducing the hardware requirement of the game. In addition, the mode of reflecting the operation keys on the body sensing device also enables a player to play a body sensing game needing a gamepad to participate at any time and any place, so that the timeliness and the freedom of the game can be improved. In addition, because the program setting is changed, the operation keys with different functions can be mapped on the somatosensory equipment, and the method has wider applicability.
And S20, acquiring key operation data and acceleration data from the bound somatosensory equipment.
Specifically, the required key operation data and acceleration data may be acquired from the motion sensing device based on a communication protocol between the motion sensing device and the terminal.
And S30, generating a climbing instruction according to the key operation data and the acceleration data.
The climbing instruction is used for controlling the game character to perform different climbing actions.
Specifically, the specific method for generating the climbing instruction according to the key operation data and the acceleration data is different according to different game designers, and can be realized by adopting a plurality of different methods. For example, generating the climbing instruction according to the key operation data and the acceleration data may be implemented by:
1. analyzing the key operation data: the key operation data is analyzed, and information such as the type and state (pressed or not) of the operation key and the time stamp of the key is identified.
2. Analyzing acceleration data: the acceleration data is analyzed, and information such as the direction, the magnitude, the time stamp and the like of the acceleration is identified.
3. And generating different climbing instructions according to the combination of the key operation data and the acceleration data.
It can be understood that different climbing instructions are generated by combining the key operation data and the acceleration data, so that on one hand, more complex climbing instruction input can be realized, and the operability of the motion sensing game is improved; on the other hand, the accuracy of instruction identification can be improved, and the probability of misjudgment is reduced.
And S40, controlling the game role to perform matched climbing action according to the climbing instruction.
Specifically, the specific method for controlling the game role to perform the matched climbing action according to the climbing instruction is different according to different game designers, and can be realized by adopting various different control modes. For example, animation control technology can be used to control animation play of a game character according to a climbing instruction, so as to realize presentation of a climbing action; the physical simulation technology can be used for controlling the physical attributes of the game role according to the climbing instruction, so that the climbing action movement is realized. In addition, animation control and physical simulation can be combined, and a complex control mode is adopted to realize the presentation and the movement of the climbing action.
The method for the motion sensing game based on the climbing action has the advantages that the operation keys are mapped on the motion sensing device, and the climbing instruction required by the game is generated according to the key operation data and the acceleration data, so that the motion sensing control of the motion sensing game can be realized only by adopting the acceleration data and the key operation data detected by the gravity sensor, and the hardware requirement of the motion sensing game on the motion sensing device can be reduced. In addition, the climbing instruction is generated by combining the key operation data and the acceleration data, on one hand, more complex climbing instruction input can be realized, and on the other hand, the instruction identification precision can be improved. Therefore, compared with the traditional motion sensing game method adopting gyroscope data, the motion sensing game method has the advantages of low hardware requirement of the motion sensing device, high precision, strong operability and the like.
In some embodiments, mapping a specific operation key on a bound motion sensing device, and generating a climbing instruction according to the key operation data and the acceleration data includes:
and S31, determining the trigger state of the operation key according to the key operation data.
Specifically, the specific method for determining the trigger state of the operation key according to the key operation data is different according to different game designers, and can be implemented by adopting a plurality of different algorithms. For example, the trigger state of the operation key may be determined from the key state in the key operation data. The method specifically comprises the following steps: when the mapped operation key is touched or pressed, judging that the operation key is triggered/in a triggering state; and when the mapped operation key is not touched or pressed, judging that the operation key is in an unfired state or an unfired state. In addition, the trigger state of the operation key can be distinguished by setting a time threshold. For example, only after the operation key is continuously touched or pressed for a certain time, the operation key is determined to be in a trigger state; otherwise, the operation key is judged not to be triggered.
And S32, generating a climbing instruction according to the trigger state of the operation key and the acceleration data.
Specifically, the specific method for generating the climbing instruction according to the trigger state of the operation key and the acceleration data is different according to different game designs, and can be realized by adopting various different algorithms.
For example, the climbing instruction may be generated according to the trigger state of the operation key and the acceleration value in the acceleration data. For example, when the operation key is triggered and the acceleration value reaches a certain threshold value, a corresponding climbing instruction is generated; and when the operation key is not triggered and the acceleration value reaches a certain threshold value, generating a corresponding climbing instruction.
For example, the climbing instruction may be generated according to the trigger state of the operation key and the acceleration change rate in the acceleration data. For example, when the operation key is triggered and the variation rate (usually, the increase rate) of the acceleration value reaches a certain threshold value, a corresponding climbing instruction is generated; and when the operation key is not triggered and the acceleration value reaches a certain threshold value, generating a corresponding climbing instruction.
It can be understood that different climbing instructions are generated by combining the key triggering state and the acceleration data, and complex climbing instruction input can be realized in a relatively simpler operation mode, so that the operability of the motion sensing game can be improved, and the operation difficulty of the game can be reduced. Meanwhile, the probability of misoperation can be reduced by a relatively simpler operation mode.
It should be noted that the design of the present application is not limited to this, and in other embodiments, the input of the climbing instruction may also be implemented in combination with the acceleration data according to the operation data when different operation keys are triggered individually or in combination. For example, an up-climbing key and a down-climbing key can be mapped on the somatosensory device, and when the up-climbing key is triggered, the terminal can generate an up-climbing operation instruction according to acceleration data; when the downward-climbing operation instruction is triggered, the terminal can generate downward-climbing operation data according to the acceleration data.
In some embodiments, generating a climbing instruction according to the trigger state of the operation key and the acceleration data includes:
and S110, generating a role climbing instruction according to the acceleration data when the operation key is triggered.
Specifically, when the user presses/touches an operation key, the terminal can generate a character climbing instruction according to acceleration data detected by the motion sensing device. The character climbing instruction can control the body of the game character to perform corresponding climbing action. Specifically, the body of the game role can climb upwards or downwards according to the role climbing instruction.
And S120, generating a role arm movement instruction according to the acceleration data when the operation key is not triggered.
Specifically, when the user does not press the operation key, the terminal can still generate the character arm movement instruction according to the acceleration data detected by the motion sensing device. The character arm movement instruction can control the arm of the game character to move. Specifically, the arms of the game character move up or down according to the arm movement instruction.
Through the scheme, the player can control the game role to move the arm and the body, so that the operability of the game can be improved, the control of the game role can be closer to the real climbing action, and the user can feel more real game experience. Of course, the design of the present application is not limited thereto, and in other embodiments, the character climbing instruction may also be generated according to the key operation data and the acceleration data.
In some embodiments, when the operation key is triggered, generating a character climbing instruction according to the acceleration data includes:
and S111, judging whether the player finishes the specified arm moving operation or not according to the acceleration data.
Specifically, the acceleration data detected by the motion sensing device when the operation key is triggered can be processed and analyzed by using an algorithm, so as to judge whether the player completes the specified arm movement operation.
For example, the moving direction and moving speed of the player's arm can be calculated from the acceleration data, and if the calculated moving direction and moving speed match the designated arm moving operation, the player can be considered to have completed the designated arm moving operation. For another example, an acceleration threshold may be set, and if the acceleration generated by the collected arm movements of the player reaches the acceleration threshold, it may be determined that the player has completed the specified arm movement operation.
Of course, other algorithms may be used as desired to determine whether the player has completed the specified arm movement operation.
And S112, if the player finishes the specified operation of moving the arm downwards, generating a character climbing-upwards instruction.
Specifically, if the player completes the specified operation of moving the arm downward, the terminal can generate a character climbing-up instruction based on this information. In accordance with the character climbing-up instruction, the body of the game character climbs up while the arm of the game character remains substantially stationary. It can be known that the actions of the player when completing the operation of moving the arm downwards and the game character executing the climbing instruction upwards are substantially the same as the actions of the player when climbing upwards in real life.
And S113, if the player finishes the specified operation of moving the arm upwards, generating a character downward climbing instruction.
Specifically, if the player completes the specified operation of moving the arm upward, the terminal can generate a character downward climbing instruction based on this information. In response to the character climb down command, the body of the game character climbs down while the arms of the game character remain substantially stationary. It can be known that the actions of the player when completing the operation of moving the arm upwards and the game character executing the downward climbing command are basically the same as the actions of the player when climbing upwards in real life.
It can be understood that the actions of the player and the climbing actions of the game role are basically consistent with the climbing action of reality through the technical scheme, and then the user can feel more real game experience.
In some embodiments, when the operation key is not triggered, generating a character arm movement instruction according to the acceleration data includes:
and S121, judging whether the player finishes the specified arm moving operation or not according to the acceleration data.
Specifically, the acceleration data detected by the motion sensing device when the operation key is not triggered can be processed and analyzed by using an algorithm, so as to judge whether the player completes the specified arm movement operation.
For example, the moving direction and moving speed of the player's arm can be calculated from the acceleration data, and if the calculated moving direction and moving speed match the designated arm moving operation, the player can be considered to have completed the designated arm moving operation. For another example, an acceleration threshold may be set, and if the acceleration generated by the collected arm movements of the player reaches the acceleration threshold, it may be determined that the player has completed the specified arm movement operation.
Of course, other algorithms may be used as desired to determine whether the player has completed the specified arm movement operation.
And S122, if the player finishes the specified operation of moving the arm downwards, generating an arm downwards moving instruction of the character.
Specifically, if the player completes the designation operation of moving the arm downward, the terminal can generate an arm downward movement instruction of the character based on this information. In response to the character arm-down movement command, the game character's arm moves down while the game character's body remains substantially stationary. It can be known that the motion of the player when the player completes the operation of moving the arm downward and the game character executes the arm downward movement command substantially coincides with the motion of the player moving the arm downward in real life.
And S123, generating a character arm upward movement instruction when the player finishes the specified operation of moving the arm upward.
Specifically, if the player completes the designation operation of moving the arm upward, the terminal can generate a character arm upward movement instruction based on this information. In response to the character arm-up movement command, the game character's arm moves up while the game character's body remains substantially stationary. It can be known that the motion of the player when the player completes the operation of moving the arm upward and the game character executes the arm upward movement command substantially coincides with the motion of the player moving the arm upward in real life.
It can be understood that through the technical scheme, the actions of the player and the climbing actions of the game role are basically consistent with the climbing action of reality, and then the user can feel more real game experience. In addition, the method can also enable the player to control the arms of the game character through arm movement, and improve the interactivity of the game.
In some embodiments, determining whether the player has completed a specified arm movement operation based on the acceleration data includes:
and judging whether the player finishes the specified arm moving operation or not according to the z-axis acceleration data.
Among these, the z-axis acceleration data represents acceleration data generated when the arm of the player is in the up-down direction. Since the acceleration in the z-axis direction is the acceleration data that changes most significantly when the player moves the arm upward and moves the arm downward, it is possible to reduce the amount of data and improve the quality of data for determination according to the z-axis acceleration data to determine whether the player has completed a specified arm movement operation, so that the terminal can determine whether the player has completed a specified arm movement operation more quickly and more accurately. Of course, the design of the present application is not limited to this, and in other embodiments, it may also be determined whether the player has completed the designated arm moving operation according to the acceleration data of other axes.
In some embodiments, determining from the z-axis acceleration data whether the player completed a specified arm movement operation includes:
and calculating the duration of the arm moving upwards or downwards by the player according to the z-axis acceleration data, and if the duration is not less than a set time threshold, judging that the arm moving operation of the arm moving upwards or downwards is completed by the player.
Specifically, calculating the duration of time for the player to move the arm up or down from the z-axis acceleration data may be based on the following steps:
1. z-axis acceleration data is acquired and stored in an array.
2. And traversing the array, and finding the starting time and the ending time of the upward movement arm or the downward movement arm. The start and end times of moving the arm up or down may be determined by determining the sign of the z-axis acceleration data. Specifically, when the z-axis acceleration value is positive, it indicates that the arm is moving upward, and when the z-axis acceleration value is negative, it indicates that the arm is moving downward.
3. The duration of moving the arm up or down, i.e., the end time minus the start time, is calculated to obtain the duration of the player moving the arm up or down. Specifically, when moving the arm up or down, the absolute value of the z-axis acceleration value is increased from 0 and then decreased to 0. According to this feature, the start time and end time at which the player starts moving the arm up or down can be found from the array. Based on the difference between the start time and the end time, the duration of the player moving the arm up or down can be obtained.
Further, after obtaining the duration of the player moving the arm up or down, the terminal needs to further compare the duration with the set time threshold. If the duration is greater than or equal to the set time threshold, the terminal can judge that the player finishes the arm moving operation of moving the arm upwards or downwards; otherwise, the terminal will consider that the player has not completed the specified arm movement operation.
In this way, whether the player completes the specified arm moving operation can be judged based on the arm moving time of the player. The method can reduce the requirements on the physical quality of the player, and is further favorable for improving the application range of the motion sensing game. Of course, the design of the present application is not limited thereto, and in other embodiments, the determination of whether the player completes the specified arm moving operation may also be implemented in other manners, which is specifically described in the above embodiments and is not described herein again.
In addition, referring to fig. 3, an embodiment of the present invention further provides a climbing motion-based motion sensing game device, including:
the mapping module 110 is configured to map a designated operation key on the bound motion sensing device;
an obtaining module 120, configured to obtain key operation data and acceleration data from the bound motion sensing device;
the instruction generating module 130 is configured to generate a climbing instruction according to the key operation data and the acceleration data;
and the execution module 140 is configured to control the game role to perform a matching climbing action according to the climbing instruction.
The steps implemented by each functional module of the motion sensing game device based on the climbing action can refer to each embodiment of the motion sensing game method based on the climbing action, and are not described herein again.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be any one of or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. The computer-readable storage medium includes a climbing-action-based motion sensing game program 10, and the specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned climbing-action-based motion sensing game method and the specific implementation of the server 1, and will not be described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A motion sensing game method based on climbing actions is characterized by comprising the following steps:
after the motion sensing game is started, mapping an appointed operation key on the bound motion sensing equipment;
acquiring key operation data and acceleration data from the bound somatosensory equipment;
generating a climbing instruction according to the key operation data and the acceleration data;
and controlling the game role to perform matched climbing action according to the climbing instruction.
2. The somatosensory game method based on climbing actions according to claim 1, wherein generating climbing instructions according to the key operation data and the acceleration data comprises:
determining the trigger state of the operation key according to the key operation data;
and generating a climbing instruction according to the triggering state of the operation key and the acceleration data.
3. The motion sensing game method based on the climbing action, as claimed in claim 2, wherein the step of generating the climbing instruction according to the trigger state of the operation key and the acceleration data comprises:
when the operation key is triggered, generating a role climbing instruction according to the acceleration data;
and when the operation key is not triggered, generating a role arm movement instruction according to the acceleration data.
4. The motion sensing game method based on the climbing action, as claimed in claim 3, wherein when the operation key is triggered, generating a character climbing instruction according to the acceleration data comprises:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the designated operation of moving the arm downwards, generating a character climbing-up instruction;
and if the player finishes the specified operation of moving the arm upwards, generating a downward climbing instruction of the character.
5. The motion sensing game method based on the climbing action, as claimed in claim 3, wherein when the operation key is not triggered, generating a character arm movement instruction according to the acceleration data comprises:
judging whether the player finishes the appointed arm movement operation according to the acceleration data;
if the player finishes the specified operation of moving the arm downwards, generating a character arm downwards moving instruction;
and if the player finishes the specified operation of moving the arm upwards, generating an arm upwards moving instruction of the character.
6. The motion sensing game method based on the climbing motion, as claimed in claim 4 or 5, wherein the determining whether the player has completed the designated arm moving operation according to the acceleration data comprises:
and judging whether the player finishes the specified arm moving operation or not according to the z-axis acceleration data.
7. The motion sensing game method based on climbing actions, according to claim 6, wherein judging whether the player completes the designated arm moving operation according to the z-axis acceleration data comprises:
and calculating the duration of the arm moving upwards or downwards by the player according to the z-axis acceleration data, and if the duration is not less than a set time threshold, judging that the arm moving operation of the arm moving upwards or downwards is completed by the player.
8. The utility model provides a recreation device is felt to body based on climbing action which characterized in that includes:
the mapping module is used for mapping the appointed operation keys on the bound motion sensing equipment;
the acquisition module is used for acquiring key operation data and acceleration data from the bound somatosensory equipment;
the instruction generating module is used for generating a climbing instruction according to the key operation data and the acceleration data;
and the execution module is used for controlling the game role to perform matched climbing action according to the climbing instruction.
9. A climbing action-based somatosensory game device, comprising a memory, a processor and a climbing action-based somatosensory game program stored on the memory and executable on the processor, wherein the processor implements the climbing action-based somatosensory game method according to any one of claims 1 to 7 when executing the climbing action-based somatosensory game program.
10. A computer-readable storage medium, wherein the computer-readable storage medium has stored thereon a climbing-action-based somatosensory game program which, when executed by a processor, implements the climbing-action-based somatosensory game method according to any one of claims 1-7.
CN202211638412.9A 2022-12-19 2022-12-19 Somatosensory game method based on climbing action Pending CN115869611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211638412.9A CN115869611A (en) 2022-12-19 2022-12-19 Somatosensory game method based on climbing action

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211638412.9A CN115869611A (en) 2022-12-19 2022-12-19 Somatosensory game method based on climbing action

Publications (1)

Publication Number Publication Date
CN115869611A true CN115869611A (en) 2023-03-31

Family

ID=85754032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211638412.9A Pending CN115869611A (en) 2022-12-19 2022-12-19 Somatosensory game method based on climbing action

Country Status (1)

Country Link
CN (1) CN115869611A (en)

Similar Documents

Publication Publication Date Title
US7934995B2 (en) Game system and information processing system
CN106878390B (en) Electronic pet interaction control method and device and wearable equipment
US9044672B2 (en) Game system, game apparatus, storage medium and game controlling method
CN102236030A (en) Inertial measurement simulation analyzing method, terminal and system
CN115869611A (en) Somatosensory game method based on climbing action
CN116196611A (en) Somatosensory game method based on waving action
CN115845356A (en) Motion sensing game method based on swiping action
CN114904258A (en) Motion sensing game method based on translation motion
CN115445201A (en) Skating motion sensing game method and device and computer readable storage medium
CN115531867A (en) Operation method of running somatosensory game
CN117919685A (en) Somatosensory game operation method based on keys and gestures
CN115645901A (en) Somatosensory game operation method, device, equipment and computer-readable storage medium
CN116129518A (en) Somatosensory operation method based on gesture recognition
CN116251343A (en) Somatosensory game method based on throwing action
CN115708954A (en) Running somatosensory game operation method
CN115337627A (en) Boxing motion sensing game method and device and computer readable storage medium
CN115657786A (en) Operation method of flying somatosensory game
CN116173492A (en) Motion sensing game method based on boxing motion
CN117180744A (en) Game operation method based on bar-shaped somatosensory controller
CN117991901A (en) Motion-based somatosensory game method
CN115006840A (en) Somatosensory online game method, device and computer-readable storage medium
CN115808980A (en) Graph cutting method based on motion sensing
CN115040872A (en) Motion sensing game method and device based on html5 and computer readable storage medium
US20240131426A1 (en) Method for operating running-type somatosensory game
CN116173491A (en) Rhythmic motion sensing game method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination