TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does a game like Just Dance score movement?

3 pointsby andrew311about 5 years ago
Hi HN, playing Just Dance on Switch while I am stuck inside. Can anyone explain how a game like Just Dance determines the accuracy of your dancing given a single Joy Con per dancer? Of course it uses telemetry such as the accelerometer, but what algorithms are at work? How does the game process the telemetry? Sometimes the scoring seems a bit arbitrary / not sensitive enough / too sensitive. What movements actually matter? For calibrating the songs, do they capture many dancers/repetitions and average it, or do they take the data from one good performance?

1 comment

strangecastsabout 5 years ago
&gt; what algorithms are at work? How does the game process the telemetry?<p>The term you likely want to put into Google is &quot;gesture recognition&quot;.<p>Sadly it&#x27;s hard to tell exactly how Ubisoft are doing it - since they&#x27;re not about to put Just Dance on GitHub any time soon - but Schlömer&#x27;s 2008 paper [1] about the Wiigee gesture recognition library [2] describes one possible approach using k-means clustering, hidden Markov models and Bayesian classifiers to recognize gestures based on the accelerometer in the Wiimote (similar to the one in the Joycon).<p>I&#x27;m guessing that the game regularly polls the Joycon&#x27;s accelerometer, fires off events when a gesture (like a hand motion) is recognized, and scores you based on how close in time you were to the expected time of that gesture (with additional points for being closer to an &quot;ideal&quot; gesture).<p>&gt; For calibrating the songs, do they capture many dancers&#x2F;repetitions and average it, or do they take the data from one good performance?<p>The former, both to gather gesture training data and to playtest it.<p>Since it&#x27;s just a game, they can take a lot of liberties with what constitutes &quot;accurate&quot; dancing - it&#x27;s far more fun to play if the game occasionally classifies a misstep as a perfect dance move and gives you a freebie, than if it consistently treats correct moves as missteps.<p>[1] <a href="http:&#x2F;&#x2F;wiigee.org&#x2F;download_files&#x2F;gesture_recognition_with_a_wii_controller-schloemer_poppinga_henze_boll.pdf" rel="nofollow">http:&#x2F;&#x2F;wiigee.org&#x2F;download_files&#x2F;gesture_recognition_with_a_...</a><p>[2] <a href="http:&#x2F;&#x2F;wiigee.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;wiigee.org&#x2F;</a>