树莓派变成游戏机

如果你想在你家电视上玩像小霸王的游戏,可以按下面步骤改装你的树莓派

1. 首先你得有一块Raspberrypi A, B或B+, 在B或B+很流畅, A由于只有256M内存,而且Raspberrypi是共享显存的,所以程序实际能使用的内存更少, A型号的不建议使用了。

2. 安装Retropie
下载Retropie http://blog.petrockblock.com/2013/02/10/retropie-project-image-download/

3. 下载并安装win32imagewriter,右键以管理员权限运行,将你下载的Retropie 镜像文件写入SD卡或TF卡。 如果想直接进入某个一模拟器,可以复制es_systems.cfg到~/.emulationstation这个目录,然后删除其他系统模拟器,仅仅保留一个。但是Input Configuration 这个必须要保留,是系统启动必须的模块,其他emulator可以根据需要裁减。

cp /etc/emulationstation/es_systems.cfg ~/.emulationstation

4. 购买一个PS3手柄

5. 配置手柄

cd /opt/retropie/emulators/RetroArch/installdir/bin

sudo ./retroarch-joyconfig -j 1 >> /opt/retropie/configs/all/retroarch.cfg

6. 每个手柄的按键值不一样,如何知道按键的值呢?

sudo apt-get install joystick

sudo jstest /dev/input/js0 js0是第一个手柄,js1是第二个手柄。。。

7. 经过上一步测试,可以知道手柄的home键值是16, 在/opt/retropie/configs/all/retroarch.cfg 末尾处添加两行

input_enable_hotkey_btn = 16

input_exit_emulator_btn = 16

8. 重启你的板子就可以了。

9. 此时就要开始装游戏了,首先你要下载游戏安装包,例如任天堂的游戏安装包是.nes文件, 你可以将你的安装文件放到U盘的 roms/nes/目录下, 再启动系统的时候,系统会自动copy这些安装文件到~/Retropie/roms/nes
目录,此目录就是任天堂模拟器的安装文件目录。

10.重启进入你的游戏模拟器开始high吧

发表评论

电子邮件地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>