Bug on Wire

Move a bug between four vertical wires to dodge birds diving from above. Speed and bird count climb every few seconds; mouse or arrow keys to play.

The interactive tool loads here when JavaScript runs.

About this tool

What is Bug on Wire?

A small reflex game. Your bug sits near the bottom of one of four vertical power lines, and red birds drop down the wires from the top of the screen. Switch wires to get out of the way. Every bird that passes you is worth a point; a bird that reaches you on the same wire ends the round.

The pressure builds on a schedule. Birds start at a steady speed that rises every 5 seconds, up to five times the starting pace, and every 10 seconds they spawn more often. A typical first run lasts under a minute; a good one lasts a few.

Move the mouse over the game area to put the bug on the nearest wire, or use the Left and Right arrows to step one wire at a time. The game runs on a canvas in your browser and keeps only your high score in local storage.

  • Four-wire lane dodging with mouse or arrow-key control
  • Speed rises every 5 seconds and spawns increase every 10
  • Pause and resume, Enter to restart, fullscreen mode
  • Frame-rate independent movement
  • High score saved locally; runs in your browser
Read the guide: Classic Browser Games: Rules and Strategies That Actually Work

Updated

How to use Bug on Wire

  1. Press the play button in the game header, press Enter, or press an arrow key to start.
  2. Move the mouse over the wires (the bug jumps to the closest one) or use Left and Right to change wires.
  3. Dodge the birds coming down your wire. Each bird that passes adds a point.
  4. Use the pause button to stop and the play button to resume the same round.
  5. After a collision, press Enter or the play button to start again. The fullscreen button enlarges the game.

Background and insight

Lane-dodging games are one of the oldest arcade forms: a fixed number of lanes, threats arriving along them, and a single decision about which lane to occupy. They work because the rules fit in one sentence while the speed ramp makes the decision harder every few seconds.

Two implementation details keep this version fair. Movement is measured in time rather than frames, so a bird takes the same time to fall on a 60 Hz laptop as on a 120 Hz monitor, and a long pause in the browser (a background tab, for example) is capped so obstacles do not jump forward. Mouse control maps the pointer to the nearest wire in the canvas's own coordinates, so it still lines up when the canvas is shrunk on a small screen or scaled up in fullscreen.

Common use cases

  • Quick reflex break

    Rounds are short and restart instantly, which suits a one-minute pause.

  • Keyboard-only play

    The arrow keys give precise single-wire steps when a mouse is awkward.

  • High score chasing

    The best score is kept in your browser so you can try to beat it later.

  • Something for kids

    Simple rules, no text to read and no fail state beyond starting again.

Tips and limitations

  • Watch the top of the screen, not the bug. Spotting a bird early leaves time for one clean move instead of a panicked double step.
  • Prefer the middle two wires. From there any other wire is at most two steps away.
  • With the mouse, move in small, deliberate motions; the bug follows the pointer instantly, so sweeping across the canvas passes through other wires.
  • Pointer control only works over the game area, so moving to the buttons does not move the bug.
  • The difficulty is tied to time survived, not score, so playing cautiously does not slow it down.

Sources and further reading

  1. Window: requestAnimationFrame() method, MDN Web Docs. Time-based animation and pausing in background tabs
  2. Element: getBoundingClientRect() method, MDN Web Docs. Mapping the pointer into a scaled canvas
  3. Anatomy of a video game, MDN Web Docs. Frame-rate independent game loops

Frequently asked questions

How do you play Bug on Wire?

Keep your bug off the wire a bird is falling down. Move the pointer over the game to jump to the nearest wire, or press Left and Right to step one wire at a time. Each bird that falls past you scores a point, and a bird that reaches you on the same wire ends the game.

How fast does Bug on Wire get?

Birds start at a base speed that increases every 5 seconds, capped at five times the starting speed. Separately, the gap between new birds shrinks every 10 seconds until it reaches its minimum. After about a minute you are near the hardest pace.

Can I pause Bug on Wire and continue?

Yes. The pause button stops the round with your score and time intact, and the play button resumes it. Pressing Enter at any time starts a brand new round instead, so use the buttons if you want to keep your score.

Does Bug on Wire work with a touchscreen?

Partly. Tapping a wire moves the bug to it, because the browser turns a tap into a click on the game area, and the play button starts a round. There is no drag control, so fast sequences are harder than with a mouse or the arrow keys.

Where is the Bug on Wire high score kept?

In your browser's local storage on this device. The high score only goes up; a weaker round never overwrites a better one. Clearing site data resets it.

Is there an in-depth guide to Bug on Wire?

Yes. “Classic Browser Games: Rules and Strategies That Actually Work” covers the background, how it works, common pitfalls and worked examples. Read the full guide.