Introducing Dodge, a WordPress game!

If you follow my blog, you’ll know that during the last two weeks of December 2023, I started hacking on a little game built on top of the WordPress Interactivity API.
Well, two weeks later, that game project has consumed all my spare time, but I am pleased to announce that version 1.0 has been released, and you can play it by clicking on the link below.
Dodge – an interactive WordPress game
If you’re wondering, the whole game is built entirely using web technologies (HTML, CSS, JavaScript, PHP), and more specifically, various parts are powered by WordPress APIs:
- The entire game is one single dynamic block.
- The WordPress Interactivity API powers the player and game controls.
- The high score data is stored using Custom Post Types and Post Meta.
- Authorization for creating high-score data is controlled using WordPress Roles and Capabilities.
- Posting and fetching high-score data makes use of the WordPress REST API.
- Displaying the 100 High Scores below the game uses a shortcode.
If you decide to give it a go, please record your score, and then share it with your friends. My current high score is Level 3 with a time of 22.591 seconds.
I’d love to see who can survive the longest!
Leave a Reply to MaximCancel reply