retro-pong-game 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -475,6 +475,27 @@ window.addEventListener('resize', () => game.resizeGame());
|
|
|
475
475
|
|
|
476
476
|
`autoSize: true` alone sizes the canvas once at startup. The game then has a fixed size until you call `resizeGame()` manually.
|
|
477
477
|
|
|
478
|
+
## Troubleshooting
|
|
479
|
+
|
|
480
|
+
### Upgrading from an older version
|
|
481
|
+
|
|
482
|
+
If you previously had an older version installed on your site and are upgrading to a newer version, you may run into issues caused by stale data in `localStorage`. To fix this, clear the saved game data in your browser.
|
|
483
|
+
|
|
484
|
+
**Option 1 — Clear all site data (quickest)**
|
|
485
|
+
|
|
486
|
+
1. Open the page in Chrome
|
|
487
|
+
2. Press `F12` to open DevTools
|
|
488
|
+
3. Go to **Application**
|
|
489
|
+
4. Click **Clear site data**
|
|
490
|
+
|
|
491
|
+
**Option 2 — Remove only the game's localStorage entry (recommended if you have other data on the page)**
|
|
492
|
+
|
|
493
|
+
1. Open DevTools (`F12`) and go to **Application → Local Storage**
|
|
494
|
+
2. Find the key `chriscreativecode.com-retro-pong-game`
|
|
495
|
+
3. Select that row and delete it (right-click → Delete, or press the Delete key)
|
|
496
|
+
|
|
497
|
+
After clearing the entry the game will start fresh with default settings on the next page load.
|
|
498
|
+
|
|
478
499
|
## Browser support
|
|
479
500
|
|
|
480
501
|
All modern browsers with HTML Canvas support (Chrome, Firefox, Safari, Edge). When importing the ES module build, a bundler (Vite, Webpack, esbuild, Parcel) is recommended for production use.
|
package/package.json
CHANGED