Two years of dev.to - let's celebrate with a "Dance Dance Revolution" clone! 💃🕺🎉
Pascal Thormeier

Pascal Thormeier @thormeier

About: Passionate full stack web developer, course author for Educative, book author for Packt, he/him. Find my work and get to know me on my Linktree: https://linktr.ee/thormeier

Location:
Switzerland
Joined:
Jul 20, 2020

Two years of dev.to - let's celebrate with a "Dance Dance Revolution" clone! 💃🕺🎉

Publish Date: Jul 21 '22
68 20

Time to celebrate!

Today marks my two-year anniversary on dev.to! With a total of 52 published posts, that's roughly one every two weeks!

And what better way to celebrate than with "Dance Dance Revolution"? The game's rules are explained quickly:

  • Boxes come down four different lanes from the top
  • As soon as the lanes hit a scoring zone (or even better: the green sweet-spot!), you need to press the correct arrow key to score points
  • Any non-correct key-press (or too early or too late) will cost you one of 10 lives

Some disclaimers, though:

  • The code is by far not the cleanest!
  • The music is royalty-free
  • Sometimes, the arrow icons take a few seconds to load
  • Wait for all the arrows to disappear before starting a new game. It might deduct lives upfront otherwise

This clone is best played on a computer with a keyboard and in a separate window.

Have fun!

What's your high score? Leave a comment down below!


I hope you enjoyed reading this article as much as I enjoyed writing it! If so, leave a ❤️ or a 🦄! I write tech articles in my free time and like to drink coffee every once in a while.

If you want to support my efforts, you can offer me a coffee or follow me on Twitter 🐦! You can also support me directly via Paypal!

Buy me a coffee button

Comments 20 total

  • Pascal Thormeier
    Pascal ThormeierJul 21, 2022

    Thank you, dev.to community for two wonderful years and many many more to come! My high score was 9200 during testing - can you do more? :D

  • Thomas Bnt
    Thomas BntJul 21, 2022

    Super cool game!
    My score is 37 250 🎉

    • Medea
      MedeaJul 21, 2022

      how- ive only got up to 3500-

    • Pascal Thormeier
      Pascal ThormeierJul 22, 2022

      Woho, nice, congrats! Let's see if I can beat that! :D

  • Rachman Esa
    Rachman EsaJul 21, 2022

    Cool! my score is -20 xD

    • Pascal Thormeier
      Pascal ThormeierJul 21, 2022

      Have you encountered a bug or did you manage to get to MAX_INT? :D

      • Rachman Esa
        Rachman EsaJul 22, 2022

        A bug maybe, when the high score popping up, and i still hit the arrow button, the lives is going to minus

        • Pascal Thormeier
          Pascal ThormeierJul 22, 2022

          Yep, that's definitely a bug, thank you! The keyboard listeners are independent from the game loop itself currently, I just need to make them not listen anymore once the game is over, give me a few minutes :D

  • Ben Halpern
    Ben HalpernJul 21, 2022

    Neat

    • Pascal Thormeier
      Pascal ThormeierJul 22, 2022

      Thank you so much! Was a fun build and I hope you're having fun with it, too.

  • Revenity
    RevenityJul 22, 2022

    Image description

    • Revenity
      RevenityJul 22, 2022

      The game started becoming boring when I reach 50000

    • Pascal Thormeier
      Pascal ThormeierJul 22, 2022

      Yeah, I can perfectly understand that! It's not meant to be hours and hours of gameplay. It's an afternoon build, really :D

      However, the size of the sandbox was bugging me since it made the game very easy. So I now adjusted the size of the lanes, so the arrows would travel much faster. Give it another try if you'd like!

      • Revenity
        RevenityAug 1, 2022

        Yea it's harder now.

        Perfect :)

  • Andrew Baisden
    Andrew BaisdenJul 23, 2022

    2450 i guess i need more practice haha

  • Krishna Agarwal
    Krishna AgarwalJul 25, 2022

    Image description

  • Quade
    QuadeAug 2, 2022

    Pretty cool game! My score is 160850

    Image description

    • Pascal Thormeier
      Pascal ThormeierAug 9, 2022

      Woah, nice! I should build a leader board for that lol

Add comment