Bug Invaders

The bugs are invading: slide, fire and defend the codebase wave after wave.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

A swarm of neon bugs marches down and speeds up as it thins out; dodge their zig-zag shots and snipe the golden zero-day UFO for bonus points. Three lives. Inspired by Space Invaders — Taito (1978).

Installation

$ npm i @pickui/bug-invaders

Publishing soonUntil it’s on npm, use the CLI or Manual tab. The API below stays the same.

Usage

example.tsx
import { BugInvaders } from "@/components/pickui/bug-invaders";

export default function Example() {
  return <BugInvaders />;
}
404 & maintenance pagesDeveloper portfoliosWaiting screens (builds, queues, uploads)Event stands

Props

PropTypeDefaultDescription
storageKeystring | null"pickui-bug-invaders-best"Where the best score is saved (null = don't save).
classNamestring—Extra classes on the cabinet.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Mouse / touch or ← →; Space or a tap fires (hold for auto-fire).
  • Keyboard input only while the cabinet is focused (click or Tab to it), so the page never scrolls by surprise; Esc / P pauses.
  • Pauses automatically when the tab is hidden, the cabinet scrolls off-screen or loses focus; reduced motion turns off screen shake and thins particles.