Z or R Twice — The Star Fox 64 Origin of the Barrel Roll
Skip to main content

Z or R Twice

The phrase that connects a 1997 Nintendo 64 game to the most famous Google Easter egg ever made. Here is the complete history.

Type "Z or R twice" into Google Search and your screen will spin 360 degrees — the same effect as "do a barrel roll." But why? The answer goes deeper than most people expect.

Interactive Generator

Customize your spin experience.

Normal

Tip: Press Space to roll · Hit Surprise Me for a random spin

Share:
Retro pixel-art style space fighter performing a barrel roll maneuver in a purple starfield
Fox McCloud's Arwing executing the iconic defensive spin in Star Fox 64

The Nintendo 64 Connection: Where "Z or R Twice" Comes From

To understand the phrase "Z or R twice," you have to go back to 1997 and the Nintendo 64. Star Fox 64 is a rail-shooter video game developed by Nintendo EAD and published by Nintendo for the N64 console. Released in North America in July 1997, it was a reimagining of the original Star Fox (1993, SNES) with dramatically improved 3D graphics and a new story presentation through in-game character dialogue.

The game follows Fox McCloud, the young leader of the Star Fox mercenary squadron. Your team is hired by General Pepper of the Cornerian Defense Force to defeat the galactic warlord Andross, who has conquered much of the solar system. Your wingmates — Falco Lombardi, Slippy Toad, and Peppy Hare — accompany you through the game's branching mission structure.

Peppy Hare is perhaps the most significant character in the context of internet history. An aging rabbit with a white mustache, Peppy is a veteran pilot who served alongside Fox's father (James McCloud) in the original Star Fox team before James was betrayed and killed by Andross. In Star Fox 64, Peppy acts as a mentor to Fox, delivering tactical advice and emotional encouragement throughout the game's missions via radio callouts.

His most famous line — the one that changed internet history — is: "Do a barrel roll!"

The N64 Controller and the Z or R Input

Nintendo 64 controller with Z and R buttons highlighted — the inputs used to perform a barrel roll in Star Fox 64
The N64 controller: double-tap Z (back trigger) or R (shoulder button) to execute the barrel roll in Star Fox 64

To execute the barrel roll move in Star Fox 64, the player had to interact with the unique layout of the Nintendo 64 controller. The N64 controller was notably unusual — a three-pronged design that was divisive among gamers but perfectly suited for the games Nintendo designed around it.

The relevant buttons are:

  • Z Button: Located on the back of the controller's center prong, the Z button is a trigger-style button accessed by the index finger. It was used in Star Fox 64 primarily for braking (slowing the Arwing's speed).
  • R Button: Located on the top-right shoulder of the controller, R is a large shoulder button accessed by the right hand's index finger. It was used for speed boosts in Star Fox 64.

Double-tapping either the Z or R button — pressing it twice in rapid succession — caused the Arwing to perform its defensive spinning maneuver. Hence Peppy's tactical instruction: press Z or R twice to execute the barrel roll.

The move was genuinely tactically useful in the game. Enemy laser fire could be deflected by the spinning Arwing, meaning well-timed barrel rolls could be the difference between survival and being shot down. Peppy's instruction was not arbitrary — it was legitimate strategic advice delivered in the middle of intense combat sequences.

Is It Actually a Barrel Roll? The Aviation Technicality

Here is where aviation nerds have had a field day for nearly three decades. What the Arwing actually performs when you double-tap Z or R is not, strictly speaking, a barrel roll. It is an aileron roll.

The distinction:

Aileron Roll

An aileron roll is a rotation of the aircraft around its longitudinal axis (the line running from nose to tail) without any change in altitude or flight path. The aircraft simply spins on its axis while continuing to fly straight. This is controlled by the ailerons — the moveable flaps on the trailing edges of the wings. The Arwing in Star Fox 64 performs this maneuver: it spins in place while continuing its forward trajectory.

True Barrel Roll

A true barrel roll is a combined aerobatic maneuver in which the aircraft simultaneously rolls and follows a curved looping path, as if the plane were rolling along the inside surface of a large imaginary barrel. The flight path traces a helical corkscrew through the air. This involves both aileron and elevator inputs and results in the nose tracing a circle in the sky.

The distinction matters in aviation but is irrelevant to internet culture. "Do an aileron roll!" is technically correct but terminally uncool. "Do a barrel roll!" has energy. Peppy Hare chose correctly.

Google's Easter egg replicates the Arwing's actual move — the page spins on its axis (aileron roll) rather than following a looping path (barrel roll). In this sense, Google is technically accurate to what the game does, even if the name is not.

From Gaming Instruction to Internet Meme

Star Fox 64 was commercially successful and critically acclaimed, but Peppy's instruction became famous for reasons beyond the game itself. In the early internet era of the late 1990s and early 2000s, gaming humor spread through message boards, IRC channels, and early forum communities. The absurdity of an anthropomorphic rabbit shouting "Do a barrel roll!" in the middle of a space battle resonated with the internet's sense of humor.

By the mid-2000s, "do a barrel roll" had become a standard internet non-sequitur — appearing in reply threads as unsolicited advice, in image macros, and as a general-purpose humorous response to any question. Image boards and early Reddit communities spread the reference widely, far beyond the audience of people who had actually played Star Fox 64.

The meme reached a tipping point around 2008-2011. YouTube videos of the Peppy Hare line were accumulating millions of views. "Do a barrel roll" was one of those phrases that a significant portion of the internet's population recognized even if they had never touched an N64 controller. It had entered the cultural vocabulary independently of its source material.

Google's Tribute: The 2011 Easter Egg

On November 3, 2011, Google released their now-legendary Easter egg. Searching "do a barrel roll" in Google Search caused the entire results page to perform a 360-degree CSS rotation — a clean, smooth, GPU-accelerated spin that lasted about one second before the page settled back to normal.

The crucial detail that reveals the depth of Google's tribute: both "do a barrel roll" AND "z or r twice" trigger the exact same animation. Google wasn't just acknowledging the meme — they were acknowledging the meme's gaming origin with enough precision to include the specific controller input. This level of fidelity to source material is remarkable and explains why the Easter egg resonated so deeply with gamers and internet veterans.

The Easter egg spread with extraordinary speed. Tech publications, Twitter, and Facebook were full of the trick within hours of its launch. Parents were calling children. Teachers were showing students. The organic, word-of-mouth spread of a hidden feature in the world's most-used search engine was a genuine mass internet moment.

The Legacy of "Z or R Twice"

More than a decade later, both the Star Fox 64 line and the Google Easter egg remain active parts of internet culture. The Easter egg still works as of 2025 — type either phrase into Google and the page spins. Star Fox 64 received an updated port for the Nintendo 3DS in 2011 (Star Fox 64 3D) that introduced a new generation of gamers to Peppy Hare's command.

The phrase "do a barrel roll" now functions as a multi-layered cultural reference. For some users, it connects directly to the 1997 game. For others, it is primarily a Google trick. For many younger users, they have encountered it through this website or similar platforms without ever knowing its gaming origin. The phrase has achieved the rare status of a meme that has separated from its source material and achieved independent cultural life.

It represents something specific about the internet's relationship with nostalgia, gaming culture, and shared references. The barrel roll Easter egg works because it rewards knowledge — if you get the Star Fox reference, the Google tribute feels like an inside joke between you and the world's largest tech company. If you don't get the reference, it is still a delightful surprise. Both audiences are served.

Try It — Z or R Twice, Online

This website exists as an extension of the same spirit. Where Google gives you one spin, this site gives you any number of spins, at any speed, shareable via a direct link. Whether you do one barrel roll in tribute to Peppy Hare or 1000 as an act of dedication to internet absurdism, the underlying animation is the same CSS transform that Google's engineers used to build their Easter egg.

Explore the full range of options:

For the full history of Google's Easter egg tradition, see our comprehensive Google Easter Eggs guide, which covers Google Gravity, Zerg Rush, Atari Breakout, Askew, Pac-Man, Snake, and more.

Z or R Twice — FAQ

People Also Search For