Dinosaur Game

Description

This plugin lets you add the dinosaur game from Google Chrome onto your WordPress site.

To use it, install the plugin, and use the [dinosaur-game] shortcode wherever you’d like the game to appear.

How to play

  • Jump to start a game.
  • The object of the game is to run as far as possible. Enemies and obstacles will try to block your path.
  • Use the space bar or up key on your keyboard to jump over them. The down key lets you crouch. On mobile, tab on the game area to jump.

Screenshots

  • A demo of the dinosaur game in a post.
  • The dinosaur game works on all screen sizes.

FAQ

Can I change how the game looks?

Yes! The HTML markup of the game has classes that make it easy to apply CSS to them. If you like playing with game files, you can also swap out the spritemap with your own by editing the game-sprites-1x.png and game-sprites-2x.png files.

Can I use this on a 404 page or another template file?

Yes! In fact, you can put this game anywhere on your site that you can put a shortcode. Inside post/page content you can use [dinosaur-game]. In a PHP template file you can use:

<?php echo do_shortcode('[dinosaur-game]'); ?>
I don’t see the game showing up. What should I do?
  • If you see the message “The dinosaur game can only be used once per post.” then that means the page is trying to show the shortcode more than once. Since the game binds to keys (up, down, and spacebar) it wouldn’t work well with multiple instances of the game on a single page. So this game only runs once per page or post.
  • If you don’t see an error message, and the shortcode still isn’t working, check your PHP error log or turn on debug mode to see if another plugin or theme is interfering with this plugin.

Also feel free to ask a question on the WordPress.org support forum.

Reviews

September 10, 2019
This is the best plugin for this game! The developer is quick to respond to any issues that may occur! Best ever!!!!!

404

May 18, 2019
Me also using this as a 404 page on my site... fantastic!
April 17, 2019
Using this as a 404 page on my new site and loving it. Easy to use, works like a charm.
Read all 4 reviews

Contributors & Developers

“Dinosaur Game” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Dinosaur Game” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

Solves a compatibility issue with the a3 Lazy Load plugin.