The disclosure belongs to the technical field of computers, and relates to a software control program, in particular to a method for operating a virtual controller in a gaming watch.
There are two main solutions for gaming control in the current market: one is to operate characters in a game in the form of buttons; and the other is to operate the sensor control hardware with real actions, and simulate a motion trajectory of a gyroscope in the 3D space on the software, wherein the same actions of characters in an gaming App are realized through the optimization of a gyroscope algorithm.
1. Remote control somatosensory gaming solution: The gaming operations are realized through buttons of a remote control, but the defect is that it cannot achieve a real overall sense of motion.
2. Switch joy-con solution: The gaming operations are realized through the buttons and actions of a gamepad.
The defects are as follows. 1) Every time the game needs to implement a new action, the data of the gyroscope needs to be simulated and realized in 3D space. By continuously optimizing the algorithm of the hardware gyroscope and adjusting the threshold, the correct display of the real actions can finally be realized on the software. 2) The actions are highly repetitively developed, which wastes more time.
The problems that are difficult to overcome are as follows. 1) The processing of the gyroscope algorithm is difficult, it is difficult to achieve sufficient accuracy, and it is difficult to be universal. 2) The solution does not go beyond the thinking limit of copying from hardware actions to software actions.
In an embodiment, a method of operating a virtual controller in a gaming watch with a gyroscope includes the following steps.
In the above method, in step 1), the real-time spatial position data of the gyroscope includes a current x-coordinate value and y-coordinate value.
In the above method, in step 2), speed data with the real-time speed less than 400 mm/s is set as the speed data generated by the movement in a small range.
In the above method, in (1) of step 3), the control panel generates a rectangular array, a horizontal arrangement or a vertical arrangement according to requirements of the virtual controller.
In the above method, in (3) of step 3), the customized determination result includes at least boxing, table tennis, basketball, racing, running, swimming and rowing.
In the above method, a technical platform of the virtual controller is Cocos Creator 2.4.5; and a technical language of the virtual controller is typescript.
In the above method, the virtual controller has a Bluetooth transmission port, and the gesture information is received through the Bluetooth transmission port.
In the above method, the gaming watch is further provided with an electronic watch display screen.
Compared with the prior art, the method of operating the virtual controller in the gaming watch has the following beneficial effects.
1. The virtual controller can quickly identify various actions of the gyroscope, and output the actions and apply them to the game.
2. Multi-action identification in the game can realized through multiple sets of controllers.
3. The virtual controller is applied to a variety of gaming action scenes, which overcomes the problem of the accuracy of the gyroscope algorithm and achieves a relatively good implementation effect.
4. As a standardized platform, the virtual controller can output to the outside.
Specific implementations of the present invention will be further explained in the following specific embodiments.
As shown in
For example, for a forehand draw of table tennis, in the virtual controller, by simulating the action of table tennis in reality, when the offset value reaches 120, a notification of the forehand draw action event will be issued. The notification of the action event can be transmitted to the game in real time, and real-time action feedback can be obtained in the game to realize real-time interaction in the game.
A technical platform of the virtual controller is Cocos Creator 2.4.5; and a technical language of the virtual controller is typescript.
The virtual controller has a Bluetooth transmission port, and the gesture information is received through the Bluetooth transmission port.
The gaming watch is further provided with an electronic watch display screen.
Compared with the prior art, the method of operating the virtual controller in the gaming watch has the following beneficial effects:
1. The virtual controller can quickly identify various actions of the gyroscope, and output the actions and apply them to the game.
2. Multi-action identification in the game can realized through multiple sets of controllers.
3. The virtual controller is applied to a variety of gaming action scenes, which overcomes the problem of the accuracy of the gyroscope algorithm and achieves a relatively good implementation effect.
4. As a standardized platform, the virtual controller can be output to the outside.
The application of the virtual controller in the gaming watch is a groundbreaking technical solution. At present, the game industry does not use this technology to realize the operations on the characters in the game by watch hardware. The real action of the watch can be more accurately identified through the virtual controller, which greatly reduces misoperation and enhances the gaming experience.
Of course, the above description is not intended to limit the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or replacements made by those skilled in the art within the essential scope of the present invention should also belong to the scope of protection of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
202111493375.2 | Dec 2021 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20140257534 | Morris | Sep 2014 | A1 |
20140269225 | Ponsada | Sep 2014 | A1 |
20160059120 | Komorous-King | Mar 2016 | A1 |
20160370767 | Huang | Dec 2016 | A1 |
20180338720 | Gupta | Nov 2018 | A1 |
Number | Date | Country | |
---|---|---|---|
20230173377 A1 | Jun 2023 | US |