A retro Space Invaders game that runs in the browser console.
Open your console to play! Mouse focus must be in the webpage (just click anywhere around here really). Best to keep the console in your bottom panel, and make sure to allow it enough height.
Get the code from GitHub or use the CDN links below.
<script src="https://cdn.jsdelivr.net/gh/lintmycode/console-invaders@main/console-invaders.js"></script>
<script src="https://cdn.jsdelivr.net/gh/lintmycode/console-invaders@main/console-invaders.min.js"></script>
View source, report issues, or contribute at: https://github.com/lintmycode/console-invaders
invaders()
- Type in console to startArrow Keys
- Move left/rightSpacebar
- ShootP
- Pause/ResumeEscape
- Hide game (keeps progress!)
Open your browser console and type invaders()
Press F12 to open console