将 Chrome Dinosaur 游戏变成宅家的锻炼项目

人机交互 YX ⋅ 于 2020-04-07 11:07:21 ⋅ 244 阅读

This Controller Turns the Chrome Dinosaur Game Into a Workout
Make your browser's running dino imitate your own jumps with this Arduino-based controller.

Like many of those reading this piece, Clifford Jay (AKA “fridaay”) has been at home for the last two weeks or so. Also, like many of us, he’s been keeping busy playing a variety of video games that he admits he’s not so good at. However, one game you might have overlooked up to now is Google Chrome's offline dinosaur game. In this masterpiece, one simply has to hit the space bar over and over to allow the protagonist t-rex to jump over obstacles that come into its path. It’s a nice distraction for a minute or two, but not one that eats into companies like EA and Valve's sales.
file
To spice things up a bit, Jay decided to create his own custom controller specifically for this game, using an accelerometer hooked up to an Arduino Uno to read actual jumping movements. Data is transmitted to another Uno connected to a laptop via a pair of nRF24L01 RF modules, which is programmed to hit the space bar when the system detects jumping.
file
While this setup doesn’t seem to enhance the user’s dinosaur skills, it does look like a fun distraction. It could perhaps also be a pretty good workout, given how tired Jay seems to be after using it.

Of course, one could always just bounce the controller up and down by hand, analgous to how the Power Pad was often misused for various hijinks on the original NES. Code for this dino jump rig isn’t currently posted, but is available upon request, per the video description.

该控制器可将Chrome Dinosaur游戏变成锻炼
使用此基于Arduino的控制器,使您的浏览器运行中的恐龙模仿您自己的跳跃。
像许多阅读本文的人一样,克利福德·杰伊(Clifford Jay,又名“星期五”)在家里呆了大约两个星期。另外,像我们许多人一样,他一直忙于玩各种电子游戏,他承认自己不太擅长。但是,到目前为止,您可能一直忽略的一款游戏是Google Chrome的离线恐龙游戏。在这部杰作中,只需要反复敲击空格键,即可使主角t-rex跳过进入其路径的障碍物。一到两分钟的时间会让人分心,但不会像EA和Valve的销售那样吃力。
为了给事情增添趣味,Jay决定使用连接到Arduino Uno的加速度计来读取实际的跳跃动作,从而专门为此游戏创建自己的自定义控制器。数据通过一对nRF24L01 RF模块传输到与笔记本电脑相连的另一个Uno,该模块被编程为在系统检测到跳跃时击中空格键。
尽管此设置似乎并没有增强用户的恐龙技能,但看起来确实很有趣。考虑到杰伊在使用它后似乎很疲倦,这也许也可能是一个很好的锻炼。
当然,人们总是可以用手上下弹起控制器,这类似于Power Pad通常被误用于原始NES上各种Hijink的情况。目前尚未发布该恐龙跳跃装备的代码,但根据视频说明,可根据要求提供该代码。

原文链接:
https://www.hackster.io/news/this-controller-turns-the-chrome-dinosaur-game-into-a-workout-83a9946e0b34

成为第一个点赞的人吧 :bowtie:
回复数量: 0
    暂无评论~~
    • 请注意单词拼写,以及中英文排版,参考此页
    • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
    • 支持表情,使用方法请见 Emoji 自动补全来咯,可用的 Emoji 请见 :metal: :point_right: Emoji 列表 :star: :sparkles:
    • 上传图片, 支持拖拽和剪切板黏贴上传, 格式限制 - jpg, png, gif
    • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
    Ctrl+Enter