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

DEBUG FEATURES

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

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

DDestroy all asteroids
Shift+DDestroy ALL (asteroids + enemies)
ASpawn a large asteroid
HToggle high performance mode
`Toggle debug mode