This plugin is outdated and might not be supported anymore
Snake Retro Game Shortcode by Eskim

Snake Retro Game Shortcode by Eskim

By Maciej
Details
View on WordPress

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 JavaScript — no external libraries needed.

Features:

  • Simple shortcode: [snake_game]
  • Fully customizable: colors, size, speed
  • Adjustable game speed (1 = slowest, 100 = fastest)
  • Pause/Resume with spacebar
  • Score counter and “PAUSED” message on canvas
  • Responsive and lightweight

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 – border color of the canvas (default: #333)
  • width – canvas width in pixels (default: 300)
  • height – canvas height in pixels (default: 300)
  • speed – snake speed from 1 (slow) to 100 (fast); internally mapped to a shorter interval in ms (default: 50)

Controls

  • Use arrow keys ( ) to move the snake.
  • Press Spacebar to pause/resume the game.
  • Click “Start Game” to begin or restart.

License

GPL v2 or later

Support the Developer

If you enjoy this plugin and want to support its development.

Details

Plugin code:
snake-retro-game-shortcode-by-eskim
Plugin version:
1.1.0
Author:
Outdated:
Yes
WP version:
5.0 or higher
PHP version:
7.0 or higher
Test up to WP version:
6.8
Total installations:
90
Last updated:
2025-04-28
Rating:
Times rated:
0
arcade
classic
game
retro
snake