[WordPress] 外掛分享: Snake Retro Game Shortcode by Eskim

首頁外掛目錄 › Snake Retro Game Shortcode by Eskim
WordPress 外掛 Snake Retro Game Shortcode by Eskim 的封面圖片
90+
安裝啟用
尚無評分
343 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.2.1 上架:2025-04-27

內容簡介

總結:Snake Retro Game Shortcode by Eskim 在您的 WordPress 網站上添加了經典的貪食蛇遊戲,可以直接在瀏覽器中完全遊玩。

問題與答案:

1. 這個外掛的名稱是什麼?
- 答案:Snake Retro Game Shortcode by Eskim。

2. 這個外掛可以直接在瀏覽器中進行遊戲嗎?
- 答案:是的,這個外掛可以直接在瀏覽器中進行遊戲。

3. 如何在 WordPress 網站上添加這個遊戲?
- 答案:遊戲是通過 [snake_game] 這個簡單的 shortcode 嵌入的。

4. 這個外掛具備哪些功能?
- 答案:這個外掛具備以下功能:
- 簡單的 shortcode: [snake_game]
- 完全可定制: 顏色、大小、速度
- 可調整的遊戲速度 (1 = 最慢, 100 = 最快)
- 利用空格鍵暫停/恢復遊戲
- 在畫布上顯示得分計數器和 "PAUSED" 訊息
- 響應式且輕量級

5. 使用什麼控制方式移動貪食蛇?
- 答案:可以使用箭頭鍵 (← ↑ ↓ →) 來移動貪食蛇。

6. 如果想要支持這個外掛的開發,應該怎麼做?
- 答案:如果喜歡這個外掛並想要支持其開發,可以支持開發者。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Snake Retro Game Shortcode by Eskim」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Snake Retro Game Shortcode by Eskim adds a classic Snake game to your WordPress site, fully playable directly in the browser.
The game is embedded via the [snake_game] shortcode and is rendered with HTML5 canvas and vanilla JavaScript — no external libraries needed.
Features:

Simple shortcode: [snake_game]
Multiple games per page supported
Fully customizable: colors, size, speed, countdown style
Adjustable game speed (1 = slowest, 100 = fastest)
Start countdown: 3…2…1…START (configurable)
Pause/resume with Spacebar
Highscore saved locally per game instance
Score counter rendered on canvas
Lightweight and responsive

Shortcode Parameters
You can customize the game using the following shortcode attributes:

background_color – canvas background color (default: #000)
snake_color – snake segment color (default: lime)
food_color – food color (default: red)
border_color – canvas border color (default: #333)
countdown_color – color of the countdown text on canvas (default: #AAAAAA)
width – canvas width in pixels (default: 300)
height – canvas height in pixels (default: 300)
speed – snake speed from 1 (slow) to 100 (fast) (default: 65)

All parameters are optional.
Controls

Use arrow keys (← ↑ ↓ →) to move the snake.
Press Spacebar to pause/resume the game.
Click Start Game to begin or restart.
Your best score is saved automatically per game instance.

License
GPL v2 or later
Support the Developer
If you enjoy this plugin and want to support its development, consider buying me a coffee:
https://www.buymeacoffee.com/eskim

延伸相關外掛

文章
Filter
Apply Filters
Mastodon