BLASTEROIDS DEBUG COMMANDS CHEAT SHEET
Note: All debug commands require DEBUG MODE to be enabled.
To enable DEBUG MODE, add ?debug
to the game URL or press ` (tilde/backtick key) in-game.
ENEMY SPAWNING COMMANDS
1
Spawn Flying Saucer
2
Spawn Graviton Ship
3
Spawn Novabomb
4
Spawn Cygnus Ship
9
Spawn Pac-Man (in attract mode)
POWERUP COMMANDS
0
Spawn random powerup at random location
GAME CONTROL COMMANDS
N
Skip to next wave (clears all enemies/asteroids)
G
Toggle God Mode (infinite shield)
P
Pause/Unpause game
K
Kill ship (for testing respawn mechanics)
L
Grant extra life
Tab
Single step forward (while paused)
VERBOSE MODE
V
Toggle Verbose Mode
When Verbose Mode is enabled, the following additional visual feedback is shown:
- Green dashed lines connecting the ship to powerups within attract range
- Yellow lines from screen center to Pac-Man objects in attract mode
- Enhanced debug information in the debug panel
- Console logging for various game events
- Visual indicators for collision detection and physics
GAMEPLAY COMMANDS
S
Start game (from attract mode or high score screen)
Arrow Keys
Ship movement and rotation
Space
Fire projectiles
GAMEPAD SUPPORT
- Left Stick/D-Pad: Ship movement
- A Button: Fire
- Y Button: Thrust
- Start Button: Start game or pause/unpause
DEBUG FEATURES
- Real-time FPS counter
- Game state information
- Object counts and positions
- Collision detection visualization
- Sound system status
- Performance metrics
TIPS FOR TESTING
- Use V to enable verbose mode for visual debugging
- Spawn enemies with 1-4 to test different enemy types
- Use 0 to spawn powerups and test attract force
- G gives you infinite shield for testing
- N lets you skip waves to test later game content
- Pause with P and use Tab to step through frames
CONSOLE COMMANDS
Open browser console (F12) to see detailed logging when verbose mode is enabled.
NOTES
- All debug commands work during gameplay
- Some commands (like enemy spawning) work in attract mode
- Verbose mode provides extensive visual and console feedback
- Debug commands are designed for testing and development
- Use responsibly - some commands can affect game balance
VERSION
Blasteroids Refactor - Debug Cheat Sheet
Last updated: Current version
QUICK REFERENCE
1-4: Spawn enemies
0: Spawn powerup
N: Next wave
G: God mode
P: Pause
K: Kill ship
L: Grant life
V: Verbose mode
Tab: Step forward (when paused)
DEBUG KEYS
D | Destroy all asteroids |
Shift+D | Destroy ALL (asteroids + enemies) |
A | Spawn a large asteroid |
H | Toggle high performance mode |
` | Toggle debug mode |