Pong Block

外掛說明

Pong Block brings the classic arcade game to your WordPress site! This block lets users play a single-player game of Pong against a computer opponent, with full accessibility, responsive controls, and extensive customization.

  • Feature-rich inspector settings for difficulty (paddle size, ball speed, winning score).
  • Three accessible color schemes (Dark, Light, High Contrast) to ensure WCAG-compliant visuals.
  • Overlays for Start, Instructions, and Game Over with auto-focused controls for keyboard users.
  • Control paddle via keyboard arrows or big touch-friendly buttons.
  • Responsive game area and controls for desktop, tablet, or mobile.
  • Game and UI are fully localizable via WordPress translation functions.
  • No scripts unless the block is present—minimal frontend impact.

螢幕擷圖

  • The Pong Block ready to start, showing overlay game mode “Easy”, “Medium”, and “Hard” buttons.
  • Pong gameplay in action, with on-screen controls.
  • Pong block editor controls showing “paddle size”, “ball speed”, “winning score”, “default difficulty”, and “color scheme” settings.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Pong Block Add an accessible, customizable Pong game to any post or page. Player vs Computer, responsive controls, color schemes, and inspector settings for difficulty.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/pong-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.

常見問題集

Is Pong Block accessible?

Yes. Pong Block includes labeled overlays, screen reader support, keyboard navigation, and touch-friendly controls. Its color schemes meet WCAG 2.1 AA contrast standards, and all text is fully localizable.

Can I adjust difficulty?

Yes. Paddle size, ball speed, winning score, and color scheme are all adjustable in the block sidebar.

Is touch/mobile supported?

Yes. Large, comfortable on-screen controls are available for mobile and tablets.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Pong Block〉的開發相關工作。

參與者

將〈Pong Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.1 – 2025-09-18

  • Fixed: WordPress.org assets.

0.1.0 – 2025-09-18

  • Added: Initial release to WordPress.org.