如何玩没有互联网的Google Chrome恐龙游戏-在线和离线

时间:2024-04-10 12:31:22

Several years ago, Google added a fun little Easter egg to Chrome: if your internet went down and you tried to visit a web page, you'd see the message "Unable to connect to the Internet"  or "No internet" with a little pixilated dinosaur next to it.

几年前,Google在Chrome浏览器中添加了一个有趣的复活节彩蛋:如果您的互联网出现故障,并且您尝试访问某个网页,您将看到“无法连接到互联网”或“没有互联网”的提示在它旁边的像素化恐龙。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Dino says no internet today
迪诺说今天没有互联网

Many people probably just thought the dinosaur was a cute little icon to keep them company while their connection was down. But then someone pressed the space bar. And the dino started running.

许多人可能只是认为恐龙是一个可爱的小图标,可以在他们的连接中断时让他们陪伴。 但是后来有人按下空格键。 恐龙开始运行。

This little Easter egg has become a beloved game. But what if you just want to play it (careful, it's addictive) when you're online and need a break? In this article, you'll learn how to play the game when you're both off and online.

这个小小的复活节彩蛋已成为人们喜爱的游戏。 但是,如果您只是想在上网且需要休息时玩它(小心,会上瘾)怎么办? 在本文中,您将学习在线和离线时如何玩游戏。

如何离线玩Chrome dino或Trex游戏 (How to play the Chrome dino or Trex game offline)

If your internet is down, just open Chrome. Or if you're already in Chrome, try to visit any web page. You'll see that little dinosaur next to its error message.

如果您的互联网中断,请打开Chrome。 或者,如果您已经在Chrome中,请尝试访问任何网页。 您会在错误消息旁边看到那个小恐龙。

Simply press the space bar (or up arrow) and the dino will start running. Press the up arrow to jump over the obstacles (like cacti) in your path. The longer you hold the up arrow, the higher dino will jump.

只需按空格键(或向上箭头),恐龙就会开始运行。 按向上箭头跳过路径中的障碍物(例如仙人掌)。 按住向上箭头的时间越长,恐龙将跳得越高。

If you need to duck under something, press the down arrow.

如果您需要躲在某些东西下面,请按向下箭头。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Get ready to jump over that cactus!
准备跳过那个仙人掌!

The longer you play, the faster dino runs/the ground moves. Once you crash into something, the game is over and you have to restart (your score resets, too). You can play again by hitting the space bar.

您玩的时间越长,恐龙跑/地面移动的速度就越快。 一旦您崩溃,游戏就结束了,您必须重新启动(您的得分也会重置)。 您可以按空格键再次播放。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Don't jump into a pile of cacti!
不要跳入一堆仙人掌!

如何在线玩Chrome dino或Trex游戏 (How to play the Chrome dino or Trex game online)

Great, you have some entertainment while waiting for your internet to come back up. But what if you want to play it while online? There are a few ways to do so.

太好了,您可以在等待互联网恢复的同时享受娱乐。 但是,如果您想在线播放该怎么办? 有几种方法可以这样做。

访问恐龙网址 (Visit the dino URL)

The simplest way to play the game online is by visiting this URL: chrome://dino/. Just access that link and voilà, there's your little dino and "no internet" message.

在线玩游戏的最简单方法是访问以下URL: chrome:// dino / 。 只需访问该链接即可,那里有您的小恐龙和“没有互联网”消息。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线

Once you see that message, just hit the spacebar and start jumping over cacti.

看到该消息后,只需按空格键并开始跳过仙人掌。

奖励:找到游戏的另一种方法 (Bonus: Another way to find the game)

Maybe you didn't get the dino error message when your internet was down. Or maybe you don't want to purposely turn off your wifi to play the game.

互联网中断时,也许您没有收到dino错误消息。 或者,也许您不想故意关闭wifi以玩游戏。

So, if you have internet but want to disable your connection in Chrome dev tools, hit F12 to open up dev tools.

因此,如果您有互联网,但想禁用Chrome开发人员工具中的连接,请按F12打开开发人员工具。

Click the "Network" tab at the top towards the right, and then look for the Online/Offline tab, second row down:

单击右上方顶部的“网络”标签,然后查找第二行下方的“在线/离线”标签:

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Look for the little dropdown arrow next to where it says "online".
在显示“在线”的位置旁边查找小下拉箭头。

Look for the little dropdown arrow, click it, and select "Offline" (instead of "Online", where it should be set if you currently have a connection).

查找小的下拉箭头,单击它,然后选择“离线”(而不是“在线”,如果当前有连接,则应在此处设置)。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Toggle to "Offline".
切换到“离线”。

Once you've done that, if you try to visit a web page, you'll get the dinosaur! You can exit dev tools and hit the space bar, as usual, to get dino running.

完成此操作后,如果您尝试访问网页,您将获得恐龙! 您可以像往常一样退出开发工具并按空格键以使dino运行。

如何玩没有互联网的Google Chrome恐龙游戏-在线和离线
Play away!
玩吧!

Now you know how to find the dino/Trex game without AND with internet connectivity. Have fun!

现在,您知道了如何在没有与AND且具有互联网连接的情况下找到dino / Trex游戏。 玩得开心!

翻译自: https://www.freecodecamp.org/news/how-to-play-the-no-internet-google-chrome-dinosaur-game-both-online-and-offline/