← Back to all games

4KB Space Invaders

A single-file Space Invaders at roughly 4KB gzipped — minimalism taken to its logical extreme.

Left/right arrows to move, space to shoot. Open in new tab ↗

Source

pi0/space-invaders

License

MIT

Stars

★ 57

Size

~10-200KB

Tech

单文件JS

Deploy

Static

How to play

Plays just like the arcade original, with every line of logic, rendering and sound crammed into one minified JS file.

Left/right arrows to move, space to shoot.

Integration notes

Slap a one-line badge on the page — 'this game is just 4KB gzipped'. Instant loading is a real, tangible edge on weak connections and in price-sensitive markets.

#单文件js#touch

FAQ

Is 4KB Space Invaders free to play?

Yes. 4KB Space Invaders is completely free, runs in your browser, and needs no install or account.

Is 4KB Space Invaders open source?

Yes. It hosts the original open-source code by pi0, released under MIT. Source: https://github.com/pi0/space-invaders

How do you play 4KB Space Invaders?

Left/right arrows to move, space to shoot.

More like this