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!
Oldest comments (20)
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
Super cool game!
My score is 37 250 π
how- ive only got up to 3500-
Woho, nice, congrats! Let's see if I can beat that! :D
Cool! my score is -20 xD
Have you encountered a bug or did you manage to get to MAX_INT? :D
A bug maybe, when the high score popping up, and i still hit the arrow button, the lives is going to minus
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
And fixed! Thank you for reporting!
Amazing!!
Neat
Thank you so much! Was a fun build and I hope you're having fun with it, too.
The game started becoming boring when I reach 50000
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!
Yea it's harder now.
Perfect :)
2450 i guess i need more practice haha
Pretty cool game! My score is 160850
Woah, nice! I should build a leader board for that lol