Mikhailkyrychenko Discount Battle Game for WooCommerce adds a playable catapult battle to a WooCommerce promotion. Configure which battlefields appear, how many reward attempts each visitor gets, which products qualify, and what coupon is issued after a win.
Display the game in a popup across your website or place it on selected pages with a shortcode. The popup can open after a delay, after a visitor scrolls, or either way. Set its display frequency and campaign dates in the admin settings.
The game includes four battlefields: Woodland Practice, Solar Bastion, Lacuna Residences, and Frostline Relay. Each reward map has its own discount, eligible and excluded products, attempt limit, coupon usage rules, expiry, and reward cap. Woodland Practice is unlimited and never issues a coupon. Store owners can optionally keep exhausted or already-won maps available for unlimited free play.
The mobile game is designed for landscape orientation. Players can pan around the battlefield with touch, pinch to zoom, and swipe the bottom skill bar. Loading status is shown while the game and selected map start.
Winning creates a standard WooCommerce coupon with the map’s configured product and usage restrictions. Players can copy the code or follow the product link to use it in the cart. A statistics page reports overall activity or recent activity by map.
The bundled battle game is included with its human-readable source under game-source/. Phaser is included under the MIT License. See THIRD-PARTY-LICENSES.txt for the third-party notice and README.md for build notes.
Important: the browser reports the game result. The server verifies a recorded attempt and applies campaign limits, but does not independently replay the complete simulation. Avoid relying on a game win as the only protection for a high-value discount.
[wpcdg_discount_game].