该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Dino Game – Embed Google Chrome Dinosaur Game in WordPress

描述

Introducing the Google Chrome Dinosaur Game plugin for WordPress! With this plugin, you can easily add the popular game to any page, post or widget of your website.

To add the game, simply use the shortcode [dino-game] anywhere on your site. Alternatively, you can use the dino game Gutenberg block to add it directly to a page or post.

With the Gutenberg block, you can easily adjust the game’s speed and sound settings (mute audio) using the block’s built-in settings. Additionally, you can also choose whether or not to save the high score.

If you prefer to use the shortcode method, you can customize the game’s speed and audio settings by including attributes in the following format: [dino-game speed="8" mute_audio='true']

How to play

  • Use the space bar or up key on your keyboard to jump over the obstacles.
  • The down key lets you crouch under the overhead obstacles.
  • When viewing from mobile tap on the game area to jump.

屏幕截图

  • Dino Game block editor and preview
  • Dino Game added using Gutenberg Block
  • Dino Game added using Shortcode
  • A view of the dinosaur game added within a post

区块

该插件提供了1个区块.

  • Dino Game

安装

  1. Install Dino Game plugin either via the WordPress.org plugin repository or by uploading the files directly to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Create a Page or a Post and add the game using shortcode or using the Gutenberg block.
  4. Need more help? Reach out to the developer here: Email,

常见问题

Will the plugin slow down my site?

Dino Game is a lightweight plugin and it only loads Javascript and CSS files on the particular page or post where the game is added.

Is there any customization options?

You can increase the speed and mute audio directly from the Gutenberg block settings and in case if you use the shortcode then you can add attributes to control the speed and audio in this format – [dino-game speed=”10″ mute_audio=’true’]

How are high scores saved?

High scores are only saved until the browser tab is closed.

Will it work on mobile?

The game will work on all screen sizes. Users can also play on mobile using touch controls instead of a keyboard.

评价

2023 年 4 月 29 日
Overall, I highly recommend (Dino Game - Embed Google Chrome Dinosaur Game in WordPress) to anyone looking for a powerful, yet user-friendly game for their WordPress site. It's definitely one of the Unique plugins I've used in long time!
阅读所有3条评价

贡献者及开发者

“Dino Game – Embed Google Chrome Dinosaur Game in WordPress” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Dino Game – Embed Google Chrome Dinosaur Game in WordPress」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Dino Game – Embed Google Chrome Dinosaur Game in WordPress”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.0

  • New Feature: High Score is saved in the browser’s local storage.
  • Added options to control whether High score will be saved or not

1.0.0

  • Initial release.