plugin-icon

Snake Retro Game Shortcode by Eskim

제작자: Maciej·
Classic retro Snake game embedded via shortcode. Built with canvas and pure JavaScript.
버전
1.2.1
활성화된 설치 항목
80
최근 업데이트일
May 5, 2025
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

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.8.3
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.