Author | Xingzao
Recently, Ian Charnas, a tubing blogger, transformed it into a somatosensory game:
You can control the characters in the game by making uppercuts, dodges, defenses and other actions.
And it can be played online. Whatever action you do, the game character will do what action (maybe because the actions are not standard, it looks inconsistent…).
There are three basic actions.
Parry: Protect your head with both hands, which can offset an opponent’s attack:
dodge: Put your arms in front of you and turn around. Note that the dodge window time is very short, and you must seize the opportunity to dodge it.
Strike out: Punch upwards, when the opponent is not defensive, you can attack:
With these three actions, you can challenge fighters from all walks of life step by step, and finally defeat the final BOSS Tyson.
Childhood game transformation plan
But to complete such a transformation, it really takes a lot of effort.
Because “Fist Without False Hair” was released in 1987, the age is too long, the hardware and software must be re-adjusted.
In addition to the posture detection part, there are three parts that need to be improved.
Let’s talk about the posture detection part first.
Ian Charnas uses MoveNet, a gesture detection model launched by Google Research.
Its characteristic is that it can locate 17 key points in the human body quickly and accurately, so it can be used for real-time posture detection and analysis.
In order to achieve the purpose of pose detection, MoveNet will calculate the following parts in parallel:
First, locate the geometric center of the human body based on the heat map.
Then predict the initial set of key points from the center outwards.
Then weight each pixel in the key point heat map to ensure that it is not interfered by background characters.
Finally, the final set of key point coordinates is given, and the local 2D offset is used to correct it.
Feel the effect of MoveNet:
With pose detection, you can start to improve the game itself.
In order for the game to run on the web, it has to be “taken out” first.
But when the game was released, it didn’t even have a USB port.
But it doesn’t matter, Charnas directly disassembled the machine, took out the CPU, and added a new circuit between the CPU and the motherboard.
Then you can download all the binary codes.
Finally, you need to use Emscripten to compile the software part into JavaScript, and you must disassemble the previous code to restore the original source code so that it can run on a web browser.
After optimizing the software, you can experience aerobic exercise~
Add a little more exciting experience: electric shock straps.
It is too real that there will be a weak electric shock when it does not dodge the opponent’s attack.
After Ian Charnas released this project on Reddit, it has received praise from many netizens.
This is the future
Much better than many fitness chains
Charnas also said that he might be a street fighter next:
Don’t come and try such a fun game~