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

chrome恐龙游戏

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浏览器中添加了一个有趣的复活节彩蛋:如果您的互联网出现故障,并且您尝试访问某个网页,则会看到“无法连接到互联网”或“没有互联网”的提示在它旁边的像素化恐龙。

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.

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

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.

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

如何在线玩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 / 。 只需访问该链接即可,那里有您的小恐龙和“没有互联网”消息。

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:

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

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).

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

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运行。

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/

chrome恐龙游戏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: Python是一种流行的编程语言,而chrome恐龙是一款非常有趣的游戏素材。 首先,Python是一种易于学习和使用的编程语言。它具有简洁的语法和强大的功能,可以用于各种领域,包括Web开发、数据分析、人工智能等。Python拥有一个强大而丰富的生态系统,有很多开源库和框架可供使用,极大地提高了编程效率。 而chrome恐龙则是一款来自于谷歌浏览器的小游戏素材。当我们的网络无法连接时,谷歌浏览器会显示一只活泼的小恐龙,并提供一个游戏界面供我们娱乐。这个游戏的目标很简单,就是跳过障碍物并尽量跑得更远。家可以通过按空格键来控制恐龙跳跃,或者按下箭头键让恐龙向下躲避障碍物。这款小游戏对于消磨时间或放松心情非常有帮助。 Python与chrome恐龙的结合可以有很多创新的用途。我们可以使用Python来开发自己的游戏版本,添加更多的关卡和特色法。另外,我们还可以使用Python编写一个程序,让它自动chrome恐龙游戏,获取最高分。这样的程序可以通过模拟键盘输入的方式来实现,使用Python的pyautogui库可以方便地控制键盘操作。 总的来说,Python和chrome恐龙素材都拥有自己的独特魅力。Python作为一种强大的编程语言,可以为我们的软件开发带来很多便利;而chrome恐龙则是一个有趣的游戏素材,让我们可以在无网络的情况下放松心情,或者通过Python的编程技巧进一步创新和挑战自我。 ### 回答2: Python chrome 恐龙素材是指在使用Python编写程序时,可以利用Google Chrome浏览器中的恐龙游戏素材。在浏览器断网时,我们可以通过按下空格键来控制一个小恐龙跳跃,避免碰到障碍物。这个游戏非常受欢迎,于是很多开发者希望能够将它应用到自己的Python项目中。为了达到这个目的,我们需要从Google Chrome浏览器中提取恐龙游戏的素材。 首先,我们需要确定在Chrome浏览器中存储素材的位置。这些素材通常包括恐龙的图片,以及障碍物、地面等的素材。我们可以在Chrome浏览器的安装目录中寻找这些素材。一旦找到了这些素材文件,我们可以将它们拷贝到我们的Python项目所在的目录中。 接下来,我们需要通过Python代码加载这些素材。Python提供了许多库和工具,可以帮助我们加载图片和其他媒体素材。我们可以使用Python的图像处理库,如PIL(Python Imaging Library),来加载恐龙的图片。对于其他的素材,我们可以使用Python的多媒体库,如pygame,来加载和处理这些素材。 一旦我们成功加载了恐龙和其他素材,我们就可以在自己的Python项目中使用它们了。我们可以使用Python的图形库将恐龙和其他素材绘制到屏幕上,创建一个类似于Chrome浏览器恐龙游戏的效果。我们还可以通过编写代码来实现类似于游戏逻辑的功能,让恐龙能够跳跃、避开障碍物等。 总之,Python chrome 恐龙素材是指在使用Python编写程序时,从Google Chrome浏览器中提取恐龙游戏的素材,并将其应用到自己的Python项目中。通过加载和处理这些素材,我们可以创建一个类似于Chrome浏览器恐龙游戏的效果,并实现相应的游戏逻辑。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值