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

36 11

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

Image of Timescale

πŸš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsβ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post β†’

Top comments (20)

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
 
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-

Retry later
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

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
 
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
 
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
 
krishnaagarwal profile image
Krishna Agarwal β€’

Image description

Collapse
 
andrewbaisden profile image
Andrew Baisden β€’

2450 i guess i need more practice haha