An interactive drag-and-drop PCB assembly game for WordPress with Elementor support.
- 🎮 Interactive drag-and-drop gameplay
- 📱 Fully responsive (desktop, tablet, mobile)
- 🎨 Smooth animations and transitions
- 🔄 Board flip animation after step 7
- ✨ Flickering display-on effect at completion
- 🎯 Ghost component placement hints
- ⚙️ Customizable button URL and text via shortcode
-
Upload the plugin folder to
/wp-content/plugins/color-kit-game/ -
Ensure the following structure:
wp-content/plugins/color-kit-game/ ├── color-kit-game.php ├── assets/ │ ├── color-kit-game.css │ ├── color-kit-game.js │ └── img/ │ ├── 00_ConenctorBoard.png │ ├── 01_FemaleHeaderPins_12P.png │ ├── 02_FemaleHeaderPins_16p.png │ ├── 03_MaleHeaderPins_12P.png │ ├── 04_MaleHeaderPins_16P.png │ ├── 05_ePulseFeather.png │ ├── 06_PowerSwitch.png │ ├── 07_GroveConnector.png │ ├── 10_ConnectorBoard.png │ ├── 11_Sticker1.png │ ├── 12_Sticker2.png │ ├── 13_Sticker3.png │ ├── 14_Sticker4.png │ ├── 15_Display.png │ ├── 16_DisplayOn.png │ └── pickup/ │ ├── 01_FemaleHeaderPins_12P.png │ ├── 02_FemaleHeaderPins_16p.png │ ├── 03_MaleHeaderPins_12P.png │ ├── 04_MaleHeaderPins_16P.png │ ├── 05_ePulseFeather.png │ ├── 06_PowerSwitch.png │ ├── 07_GroveConnector.png │ ├── 11_Sticker1.png │ ├── 12_Sticker2.png │ ├── 13_Sticker3.png │ ├── 14_Sticker4.png │ └── 15_Display.png -
Activate the plugin in WordPress admin
[color_kit_game]
[color_kit_game button_url="https://yourstore.com/product/color-kit"]
[color_kit_game button_text="Order Now"]
[color_kit_game lang="de"]
[color_kit_game button_url="https://yourstore.com/product/color-kit" button_text="Get Your Color Kit" lang="en"]
button_url- URL where the button should link (default:#)button_text- Custom button text (optional, will use language default if not set)lang- Language code:en(English) orde(German) (default:en)img_path- Custom path to images (default: plugin's assets/img/ folder)
- Add an HTML widget to your page
- Paste the shortcode:
Or for German:
[color_kit_game button_url="YOUR_PRODUCT_URL"][color_kit_game button_url="YOUR_PRODUCT_URL" lang="de"] - Save and preview
The plugin supports English (default) and German translations.
[color_kit_game button_url="https://yourstore.com/product"]
[color_kit_game button_url="https://yourstore.com/product" lang="de"]
All UI text, including step instructions, component names, and completion messages will be translated automatically.
Open demo.html in your browser to test the game without WordPress. This file uses the same CSS and JavaScript as the plugin.
To customize the demo:
- Edit the
data-button-urlattribute indemo.html - Edit the
data-button-textattribute for custom button text
-
Steps 1-7: Assemble front-side components
- Female Header Pins (12P)
- Female Header Pins (16P)
- Male Header Pins (12P)
- Male Header Pins (16P)
- ePulse Feather
- Power Switch
- Grove Connector
-
Board Flip: After step 7, the board flips to show the back
-
Steps 8-11: Place stickers on the back
- Sticker 1
- Sticker 2
- Sticker 3
- Sticker 4
-
Step 12: Place the display
-
Completion: Display flickers on with dramatic effect
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
Edit assets/color-kit-game.css to customize colors, sizes, and animations.
Edit assets/color-kit-game.js to modify game behavior, component order, or animations.
Images not loading:
- Check that all images are in the correct folders
- Verify file names match exactly (case-sensitive)
- Check browser console for 404 errors
Shortcode not working:
- Make sure the plugin is activated
- Clear WordPress cache
- Try a different page/post
Touch not working on mobile:
- Ensure you're testing on a real device (not just browser resize)
- Check that no other scripts are interfering with touch events
GPL v2 or later
Developed for Color Kit PCB assembly demonstration.