Stanisław Lem’s First Publication

Help Trurl the constructor fix a robot that thinks 2 + 2 = 7, tune a demon, fire a cannon and watch a machine make Nothing in Google's 2011 Lem doodle.

Before the click: Trurl among the Google letters, and the bird with the play button.

Level 1: the machine insists that 2 + 2 = 7.

Level 2: three dials set the wave's shape, height and spacing for the demon.

Level 3: Trurl's cannon fires at a little world drifting across the sky.

Finale: the machine that makes anything beginning with N serves noodles.

Asked for Nothing, the machine erases the whole scene.

Explorations of the eight-storey machine and its controls, published by Google.

Like this game?

At a glance

Released
November 23, 2011 — 60 years after Lem's first book, The Astronauts
Made by
Google Doodles: Marcin Wichary (idea and code), Sophia Foster-Dimino (illustration)
Genre
Point-and-click puzzle adventure
Players
1
Controls
Mouse or touch, clicks only
Inside
3 puzzle levels and a finale that ends the doodle itself
Based on
The Cyberiad, with art after Daniel Mróz's illustrations
Languages
15; Belarusian, Estonian, Latvian and Lithuanian share the Russian finale
Original size
520 × 600 page; the scene grows from 470 × 163 to 470 × 575

What the Lem doodle is

On November 23, 2011 Google marked the 60th anniversary of Stanisław Lem's first book, the novel The Astronauts, with one of the most interactive doodles it had made up to then. Instead of a logo with a link, the home page in selected countries got a small adventure game drawn in black ink.

It starts quietly. A shabby inventor stands among the giant letters of the Google logo, a bird lands next to him with a play button, and one click later the doodle grows downwards into a tall page, like an illustration in a book. The inventor is Trurl, one of the two robot "constructors" of Lem's The Cyberiad, and the rest of the game is a string of his jobs: three puzzles, each built around a machine from the stories, and a finale in which the second constructor, Klapaucius, gets the last word.

There is no score, no timer and no way to lose. You click, watch, think, and click again.

How to play

Everything is done with the mouse. Taps on a touch screen work in place of clicks. The doodle draws its own pointer, and a little clock in the lower right corner shows when a scene is playing and clicks are not taken.

Level 1: the machine that can't add

An eight-storey robot shows a sum on its chest and a wrong answer under it: 2 + 2 = 7. Trurl thinks of the right answer in a bubble; you have to make the display show it and press the round button. The first display has simple up and down arrows. The next two are trickier: their arrows move whole groups of lit segments, so you build the digit piece by piece. Three sums in all, and then the robot has a very bad moment.

Level 2: the demon

A huge creature covered in eyes sits behind a screen that draws a wave. A dashed target wave runs underneath. Use the arrow buttons on the control boxes to change the shape of the wave (square, smooth or saw-toothed), then its height, then its spacing. A new dial appears at each of the three stages, and the directions of the arrows are shuffled every time. When your line covers the dashed one, press the big button.

Level 3: the cannon

A small cube-shaped world floats across the sky, and Trurl's cannon fires its unusual load straight up. Move the cannon left or right with the side arrows and fire with the middle button; the shot falls back down a few seconds later, so you have to aim ahead of the target. Three hits finish the level. Every miss makes the target a little slower.

The finale

Trurl's last machine stands behind the Google letters. Press its button and sit back: the rest plays by itself.

If you are stuck anywhere, click Trurl for a hint. The ? in the top right corner opens a card that says what the doodle celebrates.

What happens at the end

Show the ending

The machine announces its letter, N, and makes whatever is asked of it. On a first play in English that is a needle and then a bowl of noodles. Then Klapaucius asks for Nothing. The machine starts to oblige: the scaffolding, the books, the Google letters, the mountains and even the stripes of the sky vanish one by one in little explosions, the constructors run off, and the machine is left standing alone on a white page. Finally it disappears too. The original then took you to Google's search results for Stanisław Lem. Here the doodle runs inside a frame, so it tries to open that search in a new tab instead; if your browser blocks the pop-up, the doodle simply stays on its empty white page.

The joke comes from How the World Was Saved, the opening story of The Cyberiad, in which Trurl builds a machine able to make anything that begins with the letter n.

Who made it

Google names two people behind the doodle. It was made together with Lem's estate and the illustrator's daughter.

WhoWhat they did
Marcin WicharyProposed the doodle, led the project and wrote the game and its engine
Sophia Foster-DiminoDrew the doodle, in the style of Daniel Mróz
Daniel MrózIllustrated many editions of The Cyberiad; his drawings are the model for the look
Łucja Mróz-RaynochDaniel Mróz's daughter, who collaborated with Google
Lem's estateCollaborated on the doodle

Wichary, then a senior user experience designer on Chrome, called Lem his favourite science-fiction writer and philosopher. Foster-Dimino explained the choice of book: Lem's stories can be sombre, but The Cyberiad is light and cheerful while still asking his usual philosophical questions.

How it was made

A page from a book

The team studied how Mróz's drawings sat on the pages of The Cyberiad and gave the doodle the same tall proportions. Sophia Foster-Dimino hoped the extra room would show more of Lem's universe and make a bigger impression.

Never quite the same game

Wichary wanted the game to behave a little differently each time, which he felt suited the imperfect, slightly random future of the stories. In the code the demon's dials start in random positions, the target world takes a different path on each pass, and the game remembers in the browser how often you have played. A second visit brings other objects in the finale, a fast-forward button for scenes you have already seen and a slightly harder cannon level.

An engine of its own

In his article for HTML5 Rocks, Wichary counts 17,000 lines of JavaScript, running on an engine he wrote for the doodle. It draws on an HTML5 canvas where the browser can do that well and falls back to moving page elements where it cannot. It slows down rather than skipping frames on weak computers and goes to sleep when nobody is playing. Rotating parts, such as the robots' arms, use drawings prepared at different angles, because the CSS3 and canvas rotations of the time spoiled Foster-Dimino's fine lines. Even the mouse pointer is part of the drawing.

On December 21, 2011 Google published the complete source code. The code is under the Apache 2.0 licence; the drawings and animations are under Creative Commons BY-NC-SA 3.0, which does not allow commercial reuse.

Lem and The Cyberiad

Lem's first novel, Astronauci (The Astronauts), was published by Czytelnik in 1951. The Cyberiad (Cyberiada, 1965), the book behind the doodle, collects comic tales about Trurl and Klapaucius, two brilliant and quarrelsome constructors in a universe of robots. The robot of level 1 is the eight-storey thinking machine of Trurl's Machine, which insists that two and two make seven. The eye-covered creature of level 2, which buries the screen in paper tape, recalls the demon of the second kind from the Sixth Sally, though Google never said so. Mróz, Lem's long-time illustrator, gave Trurl the features of Lem himself, so the hero of the game looks a little like the author.

Fun facts and small secrets

  1. One object was drawn by Lem

    Marcin Wichary said that among the many hidden jokes is one item drawn by Stanisław Lem himself, and left players to guess which.

  2. The bird was a promotion

    Trurl's bird friend appears in only one of Mróz's illustrations, in the 1972 edition. The team first meant it as a small Easter egg, then gave it a real part: it brings the play button and follows Trurl through every level.

  3. The letter depends on the language

    The machine works in the player's language. The Russian, Ukrainian and Bulgarian versions show the Cyrillic Н and make other objects, the Hungarian one uses S, and in Polish a first play starts with a thread and a thimble.

  4. A dragon for loyal players

    Play the whole doodle twice and come back: from the third run, a dragon from another Cyberiad story shows up as Trurl walks to the last machine. Wichary called it the probability dragon.

  5. It really erases the page

    When the machine makes Nothing, the explosions did not stop at the doodle's edge on Google's home page: the code also blew away the search box, the buttons, the links and the footer. Inside the doodle even the mouse pointer and the little icons on the right go.

  6. No sound at all

    The Lem game is completely silent: no music and no sound effects. All of its effect is in the ink drawings.

More games from the same years

In the post that released the code, Wichary listed earlier doodles where Google's programmers teamed up with the illustrators, among them the playable guitar of Les Paul's 96th Birthday and the Pac-Man doodle. Another writer of comic science fiction later got his own interactive doodle: Douglas Adams' 61st Birthday.

See for yourself

Sources (10)
  1. Google Doodles — 60th Anniversary of Stanislaw Lem's First Publication
  2. Google Polska Blog — Zagraj w Cyberiadę, doodle dla Stanisława Lema
  3. Google Open Source Blog — How the world was open sourced
  4. web.dev (HTML5 Rocks) — Case study: Building the Stanisław Lem Google doodle
  5. Google Code Archive — stanislaw-lem-google-doodle
  6. The Next Web — Google honours Polish sci-fi author with one of its most interactive doodles yet
  7. Wikipedia — Stanisław Lem
  8. Wikipedia — The Cyberiad
  9. Wikipedia (Polish) — Cyberiada
  10. Penguin — The Cyberiad

Comments

No comments yet — be the first!

More Puzzle Games

View All Puzzle Games