{"id":230369,"date":"2025-04-28T15:33:26","date_gmt":"2025-04-28T15:33:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/snake-retro-game-shortcode-by-eskim\/"},"modified":"2025-05-05T08:31:00","modified_gmt":"2025-05-05T08:31:00","slug":"snake-retro-game-shortcode-by-eskim","status":"publish","type":"plugin","link":"https:\/\/fuc.wordpress.org\/plugins\/snake-retro-game-shortcode-by-eskim\/","author":23275366,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"1.2.1","tested":"6.8.5","requires":"5.0","requires_php":"7.0","requires_plugins":null,"header_name":"Snake Retro Game Shortcode by Eskim","header_author":"Eskim","header_description":"Klasyczna gra w w\u0119\u017ca, dost\u0119pna jako shortcode do WordPressa.","assets_banners_color":"859981","last_updated":"2025-05-05 08:31:00","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/buymeacoffee.com\/eskim","header_plugin_uri":"https:\/\/eskim.pl\/snake-retro-game-shortcode-by-eskim-en\/","header_author_uri":"https:\/\/eskim.pl","rating":0,"author_block_rating":0,"active_installs":90,"downloads":855,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"eskimpl","date":"2025-04-28 17:39:28"},"1.2.0":{"tag":"1.2.0","author":"eskimpl","date":"2025-05-05 07:44:14"},"1.2.1":{"tag":"1.2.1","author":"eskimpl","date":"2025-05-05 08:31:00"}},"upgrade_notice":{"1.2.1":"<p>Fixes a bug where pressing two arrow keys too quickly could cause an unexpected game over.<\/p>","1.2.0":"<p>Improved UX with countdown, multiple game support, and highscore tracking per instance.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3283505,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3283505,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3283505,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3283505,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3283505,"resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3283505,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Snake game displayed with default settings.","2":"Custom colors and larger game area.","3":"\"PAUSED\" overlay and highscore display.","4":"Countdown sequence before the game starts."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[8336,11838,533,37955,57866],"plugin_category":[37],"plugin_contributors":[241514],"plugin_business_model":[],"class_list":["post-230369","plugin","type-plugin","status-publish","hentry","plugin_tags-arcade","plugin_tags-classic","plugin_tags-game","plugin_tags-retro","plugin_tags-snake","plugin_category-arts-and-entertainment","plugin_contributors-eskimpl","plugin_committers-eskimpl"],"banners":{"banner":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/banner-772x250.jpg?rev=3283505","banner_2x":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/banner-1544x500.jpg?rev=3283505","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/icon-128x128.png?rev=3283505","icon_2x":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/icon-256x256.png?rev=3283505","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/screenshot-1.jpg?rev=3283505","caption":"Snake game displayed with default settings."},{"src":"https:\/\/ps.w.org\/snake-retro-game-shortcode-by-eskim\/assets\/screenshot-2.jpg?rev=3283505","caption":"Custom colors and larger game area."}],"raw_content":"<!--section=description-->\n<p>Snake Retro Game Shortcode by Eskim adds a classic Snake game to your WordPress site, fully playable directly in the browser.<\/p>\n\n<p>The game is embedded via the <code>[snake_game]<\/code> shortcode and is rendered with HTML5 canvas and vanilla JavaScript \u2014 no external libraries needed.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Simple shortcode: [snake_game]<\/li>\n<li>Multiple games per page supported<\/li>\n<li>Fully customizable: colors, size, speed, countdown style<\/li>\n<li>Adjustable game speed (1 = slowest, 100 = fastest)<\/li>\n<li>Start countdown: 3\u20262\u20261\u2026START (configurable)<\/li>\n<li>Pause\/resume with Spacebar<\/li>\n<li>Highscore saved locally per game instance<\/li>\n<li>Score counter rendered on canvas<\/li>\n<li>Lightweight and responsive<\/li>\n<\/ul>\n\n<h3>Shortcode Parameters<\/h3>\n\n<p>You can customize the game using the following shortcode attributes:<\/p>\n\n<ul>\n<li><code>background_color<\/code> \u2013 canvas background color (default: <code>#000<\/code>)<\/li>\n<li><code>snake_color<\/code> \u2013 snake segment color (default: <code>lime<\/code>)<\/li>\n<li><code>food_color<\/code> \u2013 food color (default: <code>red<\/code>)<\/li>\n<li><code>border_color<\/code> \u2013 canvas border color (default: <code>#333<\/code>)<\/li>\n<li><code>countdown_color<\/code> \u2013 color of the countdown text on canvas (default: <code>#AAAAAA<\/code>)<\/li>\n<li><code>width<\/code> \u2013 canvas width in pixels (default: <code>300<\/code>)<\/li>\n<li><code>height<\/code> \u2013 canvas height in pixels (default: <code>300<\/code>)<\/li>\n<li><code>speed<\/code> \u2013 snake speed from 1 (slow) to 100 (fast) (default: <code>65<\/code>)<\/li>\n<\/ul>\n\n<p>All parameters are optional.<\/p>\n\n<h3>Controls<\/h3>\n\n<ul>\n<li>Use arrow keys (\u2190 \u2191 \u2193 \u2192) to move the snake.<\/li>\n<li>Press <strong>Spacebar<\/strong> to pause\/resume the game.<\/li>\n<li>Click <strong>Start Game<\/strong> to begin or restart.<\/li>\n<li>Your best score is saved automatically per game instance.<\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>GPL v2 or later<\/p>\n\n<h3>Support the Developer<\/h3>\n\n<p>If you enjoy this plugin and want to support its development, consider buying me a coffee:<br \/>\nhttps:\/\/www.buymeacoffee.com\/eskim<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin via the \"Plugins\" menu.<\/li>\n<li>Add the <code>[snake_game]<\/code> shortcode to any post or page.<\/li>\n<\/ol>\n\n<p>Example usage:<\/p>\n\n<pre><code>[snake_game background_color=\"#111\" snake_color=\"lime\" food_color=\"yellow\" border_color=\"#0ff\" countdown_color=\"#aaa\" width=\"400\" height=\"400\" speed=\"75\"]\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20change%20the%20size%20and%20colors%3F'><h3>Can I change the size and colors?<\/h3><\/dt>\n<dd><p>Yes \u2014 use the shortcode attributes.<\/p><\/dd>\n<dt id='can%20i%20use%20this%20in%20a%20widget%20area%3F'><h3>Can I use this in a widget area?<\/h3><\/dt>\n<dd><p>Not in this version \u2014 use shortcodes in blocks or custom HTML widgets.<\/p><\/dd>\n<dt id='is%20it%20mobile-friendly%3F'><h3>Is it mobile-friendly?<\/h3><\/dt>\n<dd><p>It works on mobile, but is best played on keyboard. Touch controls are not yet implemented.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixed issue where pressing two arrow keys quickly could cause an instant game over<\/li>\n<li>Improved input handling to prevent unintended diagonal movement<\/li>\n<li>Minor cleanup and logic stabilization<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added support for multiple games per page (no more ID conflicts)<\/li>\n<li>Local highscore saved per instance via localStorage<\/li>\n<li>Added start countdown (3\u20262\u20261\u2026START)<\/li>\n<li>Improved canvas rendering and contrast<\/li>\n<li>Clean refactor of CSS and JS for multi-instance support<\/li>\n<li>Added support for translations<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Removed widget support<\/li>\n<li>Added mapRange logic for better speed control<\/li>\n<li>\"PAUSED\" label rendered on canvas<\/li>\n<li>Optimized shortcode-only version<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release with shortcode and widget support<\/li>\n<\/ul>","raw_excerpt":"Classic retro Snake game embedded via shortcode. Built with canvas and pure JavaScript.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/230369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=230369"}],"author":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eskimpl"}],"wp:attachment":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=230369"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=230369"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=230369"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=230369"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=230369"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=230369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}