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!
3 responses to “Introducing Dodge, a WordPress game!”
-
[…] この投稿では、同僚の Jonathan が WordPress のインタラクティビティ API を使って作ったオンラインゲーム「Dodge」を紹介します。詳しくは、本人の投稿もぜひ参照してみてください:Introducing Dodge, a WordPress game!(By Jonathan Bossenger – X・Twitter、WordPress プロフィール) […]
-
[…] Kanske mer imponerande bygge än kul, men jag fick i alla fall 78 sekunder på första försöket. Här finns lite bakgrund om du är nyfiken på […]
-
That’s an interesting use of WordPress and its APIs!
Though the recent Interactivity API release wasn’t met with loud applause, at WPLake we assume it’ll be a game-changing feature. In case you aren’t familiar yet, read our detailed explanation of the WordPress Interactivity API.
Leave a Reply