DEV Community

Cover image for Two years of dev.to - let's celebrate with a "Dance Dance Revolution" clone! πŸ’ƒπŸ•ΊπŸŽ‰
Pascal Thormeier
Pascal Thormeier

Posted on

Two years of dev.to - let's celebrate with a "Dance Dance Revolution" clone! πŸ’ƒπŸ•ΊπŸŽ‰

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

Latest comments (20)

Collapse
 
chasehays84 profile image
Quade

Pretty cool game! My score is 160850

Image description

Collapse
 
thormeier profile image
Pascal Thormeier

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

Collapse
 
krishnaagarwal profile image
Krishna Agarwal

Image description

Collapse
 
andrewbaisden profile image
Andrew Baisden

2450 i guess i need more practice haha

Collapse
 
revenity profile image
Revenity

Image description

Collapse
 
thormeier profile image
Pascal Thormeier

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!

Collapse
 
revenity profile image
Revenity

Yea it's harder now.

Perfect :)

Collapse
 
revenity profile image
Revenity

The game started becoming boring when I reach 50000

Collapse
 
ben profile image
Ben Halpern

Neat

Collapse
 
thormeier profile image
Pascal Thormeier

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

Collapse
 
esareynor profile image
Rachman Esa

Cool! my score is -20 xD

Collapse
 
thormeier profile image
Pascal Thormeier

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

Collapse
 
esareynor profile image
Rachman Esa

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

Thread Thread
 
thormeier profile image
Pascal Thormeier

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

Thread Thread
 
thormeier profile image
Pascal Thormeier

And fixed! Thank you for reporting!

Thread Thread
 
esareynor profile image
Rachman Esa

Amazing!!

Collapse
 
thomasbnt profile image
Thomas Bnt β˜•

Super cool game!
My score is 37 250 πŸŽ‰

Collapse
 
thormeier profile image
Pascal Thormeier

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

Collapse
 
vulcanwm profile image
Medea

how- ive only got up to 3500-

Collapse
 
thormeier profile image
Pascal Thormeier

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