Retro Arcade Page Destroyer
Asteroids WordPress Plugin modernized for PHP 8+
by Krystalia Saldari · github.com/krysgit/retro-arcade-page-destroyer · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/krysgit/retro-arcade-page-destroyer/archive/refs/heads/main.zipReadme
Retro Arcade Page Destroyer
Turn your WordPress site into an interactive retro arcade shooter. Click to launch the ship and destroy webpage contents by flying around and blasting them.
This repository contains a modernized, secure fork of the classic "Asteroids Widget" by Eric Burger (Electric Tree House) and Erik Rothoff Andersson, fully updated for modern WordPress standards and PHP 8.0, 8.1, 8.2, and 8.3+.
Features
- Classic arcade vector gameplay directly on your WordPress pages.
- Multiple button and retro arcade machine triggers.
- Optional custom backgrounds and auto-formatting.
- Embed anywhere using the [asteroids] shortcode or as a Sidebar Widget.
- Zero fatal errors on PHP 8+.
- Cleaned of insecure functions (eval removed, proper escaping & sanitization).
Requirements
- WordPress: 5.0 or higher
- PHP: 7.4 to 8.3+
- License: GPLv2 or later
Installation
Manual Upload (.zip)
- Download the latest .zip release from the Releases section.
- In your WordPress Admin, go to Plugins > Add New > Upload Plugin.
- Select the .zip file and click Install Now.
- Click Activate Plugin.
Widget Setup
- Go to Appearance > Widgets.
- Add the Retro Arcade Destroyer widget to your preferred sidebar or widget area.
- Configure your display rules, images, and button styles.
Game Controls
- W / Up Arrow: Thrust forward
- A / S / D / Left & Right Arrows: Steer and rotate
- Spacebar: Fire bullets
- B: Highlight breakable targets
- Esc: Quit game
Shortcode Attributes
Embed the launcher anywhere using the [asteroids] shortcode:
| Attribute | Options | Default | Description |
|---|---|---|---|
image |
none, image-1, image-2, image-3, image-4, image-5, image-6 |
none |
Select launcher graphic (e.g., rocket or arcade cabinets) |
button |
push-1, text-1, none |
push-1 |
Select trigger button style or disable it completely |
bullet_color |
yellow, "" |
"" |
Change bullet trace color to yellow |
Examples
- Rocket graphic only (no button):
[asteroids image="image-3" button="none"] [asteroids image="image-4" button="none" bullet_color="yellow"] [asteroids button="text-1" image="none"]
Changelog
1.0.0
- Modernized fork compatible with PHP 8+.
- Fixed fatal errors caused by deprecated functions.
- Updated class constructors to standard __construct().
- Added output escaping, sanitization, and security guards.
- Added shortcode support.
Credits & License
- Original Plugin: Eric Burger (Electric Tree House)
- Original Game Script: Erik Rothoff Andersson
- PHP 8+ Modernization & Fork Maintainer: Krystalia Saldari (https://github.com/krysgit)
- License: Distributed under the GNU General Public License v2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html).