Title: Dinosaur Game
Author: Chris David Miles
Published: <strong>2019 年 2 月 14 日</strong>
Last modified: 2025 年 8 月 14 日

---

搜尋外掛

![](https://ps.w.org/dinosaur-game/assets/banner-772x250.png?rev=2030297)

![](https://ps.w.org/dinosaur-game/assets/icon.svg?rev=2030297)

# Dinosaur Game

 由 [Chris David Miles](https://profiles.wordpress.org/chrisdavidmiles/) 開發

[下載](https://downloads.wordpress.org/plugin/dinosaur-game.1.0.7.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/dinosaur-game/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/dinosaur-game/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/dinosaur-game/#developers)

 [技術支援](https://wordpress.org/support/plugin/dinosaur-game/)

## 外掛說明

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, tap on the game area to jump.

## 螢幕擷圖

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

## 常見問題集

### 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 page.” 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](https://wordpress.org/support/plugin/dinosaur-game/).

## 使用者評論

![](https://secure.gravatar.com/avatar/e0598df322c05dcfcf19560ae70273e8ac8a0e77802354d3ff29464ea320ae8e?
s=60&d=retro&r=g)

### 󠀁[It works without problems](https://wordpress.org/support/topic/it-works-without-problems-2/)󠁿

 [Просування сайтів](https://profiles.wordpress.org/bogdan2143/) 2025 年 2 月 17
日 1 則留言

It works without problems, you can benefit. I want to post more games on my website

![](https://secure.gravatar.com/avatar/58057a47be92d4e78101315f6fa5081c707060eb68187b5d2b78ef1e0b651028?
s=60&d=retro&r=g)

### 󠀁[Cool game for 404 pages](https://wordpress.org/support/topic/cool-game-for-404-pages/)󠁿

 [aregtheeditor](https://profiles.wordpress.org/aregtheeditor/) 2023 年 11 月 29
日

I added this plugin for my 404 pages to be fun!

![](https://secure.gravatar.com/avatar/4a2ef97d9889a33bcbd6c3e87c1aafac242164fcf5ecf9227d4dee9410357e57?
s=60&d=retro&r=g)

### 󠀁[great for offline functionality in PWA websites](https://wordpress.org/support/topic/great-for-offline-functionality-in-pwa-websites/)󠁿

 [Xandro](https://profiles.wordpress.org/sudarshankotian/) 2022 年 11 月 7 日 1 
則留言

This is really cool game, the one we play in Google chrome often. I mean only for
offline purpose. 😉

![](https://secure.gravatar.com/avatar/7ef118d31a3e8e6943b4bf055866d3a8bb37122947e30e64124e8626ea70db66?
s=60&d=retro&r=g)

### 󠀁[AWESOME GAME PLUGIN](https://wordpress.org/support/topic/awesome-game-plugin/)󠁿

 [Storiez](https://profiles.wordpress.org/storiez/) 2021 年 10 月 9 日 1 則留言

This is what i was looking for a very lonnnnnnnnng time! Finally,I’ve found it. 
It’s work properly. So Awesome!

![](https://secure.gravatar.com/avatar/2e1c0ebd8d751621a31d51bad22c94291862dbb95567fc976d58af63c6af6d5f?
s=60&d=retro&r=g)

### 󠀁[Great base to build a site specific game on](https://wordpress.org/support/topic/great-base-to-build-a-site-specific-game-on/)󠁿

 [RichHelms](https://profiles.wordpress.org/richhelms/) 2021 年 8 月 1 日 1 則留言

The code is very well written and documented. I have been building a game based 
on this code by modifying the png sprint image.

![](https://secure.gravatar.com/avatar/7fe1cea42f9e6d31656e222c292c679418e182d21c0307f6d0b01b7a68dd60b6?
s=60&d=retro&r=g)

### 󠀁[nice game to have on website](https://wordpress.org/support/topic/nice-game-to-have-on-website/)󠁿

 [tajmohamed30](https://profiles.wordpress.org/tajmohamed30/) 2021 年 6 月 15 日
1 則留言

i hope customers will like it thanks

 [ 閱讀全部 12 則使用者評論 ](https://wordpress.org/support/plugin/dinosaur-game/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Dinosaur Game〉的開發相關工作。

參與者

 *   [ Chris David Miles ](https://profiles.wordpress.org/chrisdavidmiles/)
 *   [ Google ](https://profiles.wordpress.org/google/)

[將〈Dinosaur Game〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/dinosaur-game)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/dinosaur-game/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/dinosaur-game/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/dinosaur-game/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/dinosaur-game/)。

## 變更記錄

#### 1.0.7

 * Makes it easier to redefine plugin resources so another plugin could specify 
   custom js, css, or game sprites.

#### 1.0.6

 * Solves a problem with full page caching.

#### 1.0.5

 * Solves a compatibility issue with the plugin Lazy Load by Mohammad Jangda.

#### 1.0.4

 * Solves a compatibility issue with Jetpack Photon CDN.

#### 1.0.3

 * “The dinosaur game can only be used once per page.” checking is now done within
   the shortcode rather than using CSS, and works much better.

#### 1.0.2

 * The game’s CSS is now slightly more portable.
 * This release fixes compatibility issues with a number of image lazy load plugins
   including:
    - Crazy Lazy
    - EWWW Image Optimizer
    - Lazy Load by WP Rocket
    - Lazy Loader
    - Native Lazyload
    - Smush Image Compression and Optimization (wp-smushit) by WPMU DEV
    - WP-Optimize Premium – Clean, Compress, Cache

#### 1.0.1

 * Solves a compatibility issue with the a3 Lazy Load plugin.

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.7**
 *  最後更新 **10 個月前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 3.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/dinosaur-game/)
 * 標籤:
 * [chrome](https://tw.wordpress.org/plugins/tags/chrome/)[Chromium](https://tw.wordpress.org/plugins/tags/chromium/)
   [dinosaur](https://tw.wordpress.org/plugins/tags/dinosaur/)[game](https://tw.wordpress.org/plugins/tags/game/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/dinosaur-game/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  13 個 5 星使用者評論     ](https://wordpress.org/support/plugin/dinosaur-game/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/dinosaur-game/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/dinosaur-game/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/dinosaur-game/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/dinosaur-game/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dinosaur-game/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/dinosaur-game/reviews/)

## 參與者

 *   [ Chris David Miles ](https://profiles.wordpress.org/chrisdavidmiles/)
 *   [ Google ](https://profiles.wordpress.org/google/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/dinosaur-game/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://chrisdavidmiles.com/donate)