如何在Raspberry Pi上安装游戏模拟器

貌似不是-因为它也可以玩游戏。

当然,不是最新的具有惊人图形的高清游戏。相反,Raspberry Pi可以用作复古游戏中心–借助仿真软件,它可以在从Apple II到PlayStation I的所有平台上运行惊人的游戏。

当我第一次提出建议时本文的目的是在Raspberry Pi中找到一些非常好的模拟器并将其展示出来。但是,现在没有必要了,因为该软件可以批量安装所有仿真器。使用EmulationStation软件,您可以将Raspberry Pi变成RetroPie,这是您将找到的最紧凑的通用游戏仿真解决方案……

构建RetroPie所需的东西

将需要所有常规的Raspberry Pi基础知识来构建RetroPie – HDMI或RCA电缆,USB键盘和鼠标,以太网连接–以及与安装媒体中心和其他Raspberry PI操作系统一样,您需要在您的软件上准备软件

RetroPie软件基本上是EmulationStation和精简版的Raspbian(Raspberry Pi Debian发行版)。这很有用,因为这意味着您可以使用GUI文件浏览器来编辑配置文件。

访问petRockBlog以下载RetroPie Project SD卡映像,并使用Win32 Disk Imager工具将映像“刻录"到您的SD卡,如下所述。

您还需要一些自己喜欢的复古游戏的ROM……

安装RetroPie

下载两个文件后,将空白的格式化SD卡插入计算机的读卡器。 RetroPie映像约为1.4 GB,但已作为ZIP文件下载,因此需要解压缩。

解压缩 win32diskimager-binary.zip ,完成后,打开目标文件夹,以找到 win32diskimager.exe 文件。右键单击它,选择以管理员身份运行

在Linux和Mac OS X中将映像文件复制到SD卡的过程有些不同,但是您可以在RPi Wiki上找到一些快速步骤。

启动和配置

Starting up your RetroPie system for the first time, you will be asked to configure your controller. Now, this isn’t the calibration that is needed to control the various games that you will be playing – rather, this is to configure your retro controller, joystick or even keyboard to navigate the EmulationStation software.

You’ll see on the screenshot above that you need to configure various commands. Keep a note of these as you may find one or two of them useful very soon.

完成后,请点击设置为 Menu 的按钮或键。 ,然后选择退出。这将退出EmulationStation并进入命令行。

从此处输入

startx

这将启动Raspbian的GUI,使您可以对控制器配置进行必要的更改。在文件管理器中,打开 RetroPie \ Configs \ all 并在诸如LeafPad之类的文本编辑器中运行 retroarch.cfg

您需要在Google上进行搜索以找到适合您设备的最佳配置的不同控制器类型。但是,如果您的控制器没有模拟摇杆(例如在Xbox 360控制器上找到的那些小摇杆),则需要查找并删除以下行:

input_player1_l_x_plus_btn = "x"

retroarch.cfg文件非常有用,并且您可能会发现自己经常进行编辑,因此在每次进行更改时都要进行复制,以便可以轻松撤消。

准备重新启动EmulationStation时,请打开X主菜单,选择注销,然后在提示符下输入

emulationstation

,这将使计算机返回RetroPie模式。

添加新游戏

Pi设置可以运行复古游戏,您将可以开始播放附带的ROM。这些出现在第一个有限的仿真器选择下。

首先限制该选择,因为所包含的大量仿真器只有在有合适的ROM播放时才能运行。因此,您需要通过将ROM复制到RetroPie的相应文件夹中来使用ROM“激活"仿真器。

许多网站都提供了可下载复古游戏ROM的网站。但是,请确保您拥有要下载的游戏的原始磁盘,卡带或卡带。

To add ROMs, the quickest way is probably connecting to your Raspberry Pi via SFTP (that’s like standard FTP but using an SSH connection) from your main PC and browse to the RetroPie\ROMs folder. Here, all of the subdirectories will house the ROMs that you download, and are labelled appropriately. All you need to do is upload them to the corresponding folders, then refresh the EmulationStation by restarting the device or navigating through the menus for a while using the controller configuration you configured earlier.

配置完成?开始游戏!

到目前为止,我一直在使用Pi作为台式机和媒体中心,但是RetroPie无疑是这台令人印象深刻的小型计算机带来的最大乐趣。

您可以在几分钟之内播放自己喜欢的经典平台上的一些复古街机经典游戏,这些平台都由Raspberry Pi提供支持。

此设置的可能性也不错。您可能会邀请朋友来玩多人游戏,或者只是用鼠标和键盘来在DOS仿真下玩经典的PC游戏。

最重要的是,确保您玩得开心!

标签: 仿真 Raspberry Pi