Title: Snake Retro Game Shortcode by Eskim
Author: Maciej
Published: <strong>avril 28, 2025</strong>
Last modified: mai 5, 2025

---

Search plugins

![](https://ps.w.org/snake-retro-game-shortcode-by-eskim/assets/banner-772x250.jpg?
rev=3283505)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/snake-retro-game-shortcode-by-eskim/assets/icon-256x256.png?
rev=3283505)

# Snake Retro Game Shortcode by Eskim

 By [Maciej](https://profiles.wordpress.org/eskimpl/)

[Download](https://downloads.wordpress.org/plugin/snake-retro-game-shortcode-by-eskim.1.2.1.zip)

 * [Details](https://tah.wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/#description)
 * [Reviews](https://tah.wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/#reviews)
 *  [Installation](https://tah.wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/#installation)
 * [Development](https://tah.wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/#developers)

 [Support](https://wordpress.org/support/plugin/snake-retro-game-shortcode-by-eskim/)

## Description

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

## Screenshots

[⌊Snake game displayed with default settings.⌉⌊Snake game displayed with default
settings.⌉[

Snake game displayed with default settings.

[⌊Custom colors and larger game area.⌉⌊Custom colors and larger game area.⌉[

Custom colors and larger game area.

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/`.
 2. Activate the plugin via the « Plugins » menu.
 3. Add the `[snake_game]` shortcode to any post or page.

Example usage:

    ```
    [snake_game background_color="#111" snake_color="lime" food_color="yellow" border_color="#0ff" countdown_color="#aaa" width="400" height="400" speed="75"]
    ```

## FAQ

### Can I change the size and colors?

Yes — use the shortcode attributes.

### Can I use this in a widget area?

Not in this version — use shortcodes in blocks or custom HTML widgets.

### Is it mobile-friendly?

It works on mobile, but is best played on keyboard. Touch controls are not yet implemented.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Snake Retro Game Shortcode by Eskim” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Maciej ](https://profiles.wordpress.org/eskimpl/)

[Translate “Snake Retro Game Shortcode by Eskim” into your language.](https://translate.wordpress.org/projects/wp-plugins/snake-retro-game-shortcode-by-eskim)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/snake-retro-game-shortcode-by-eskim/),
check out the [SVN repository](https://plugins.svn.wordpress.org/snake-retro-game-shortcode-by-eskim/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/snake-retro-game-shortcode-by-eskim/)
by [RSS](https://plugins.trac.wordpress.org/log/snake-retro-game-shortcode-by-eskim/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.1

 * Fixed issue where pressing two arrow keys quickly could cause an instant game
   over
 * Improved input handling to prevent unintended diagonal movement
 * Minor cleanup and logic stabilization

#### 1.2.0

 * Added support for multiple games per page (no more ID conflicts)
 * Local highscore saved per instance via localStorage
 * Added start countdown (3…2…1…START)
 * Improved canvas rendering and contrast
 * Clean refactor of CSS and JS for multi-instance support
 * Added support for translations

#### 1.1.0

 * Removed widget support
 * Added mapRange logic for better speed control
 * « PAUSED » label rendered on canvas
 * Optimized shortcode-only version

#### 1.0.0

 * Initial release with shortcode and widget support

## Meta

 *  Version **1.2.1**
 *  Last updated **1 année ago**
 *  Active installations **80+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.10**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/)
 * Tags
 * [arcade](https://tah.wordpress.org/plugins/tags/arcade/)[classic](https://tah.wordpress.org/plugins/tags/classic/)
   [game](https://tah.wordpress.org/plugins/tags/game/)[retro](https://tah.wordpress.org/plugins/tags/retro/)
   [snake](https://tah.wordpress.org/plugins/tags/snake/)
 *  [Advanced View](https://tah.wordpress.org/plugins/snake-retro-game-shortcode-by-eskim/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/snake-retro-game-shortcode-by-eskim/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/snake-retro-game-shortcode-by-eskim/reviews/)

## Contributors

 *   [ Maciej ](https://profiles.wordpress.org/eskimpl/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/snake-retro-game-shortcode-by-eskim/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/eskim)