11

开源Game Boy 模拟器-PyBoy

 4 years ago
source link: http://osp.io/archives/6659
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
开源Game Boy 模拟器-PyBoy – 开源派

PyBoy是一个基于 Python编写 的 Game Boy 开源模拟器。遵守LGPL开源协议。主要作者是丹麦小哥 Mads Ynddal,毕业于丹麦哥本哈根大学。PyBoy不仅能模拟GameBoy进行游戏,还可以用来创建 AI 或机器人,通过 API 编写脚本,让它基于强化学习实现自动打游戏通关。支持使用 Cython 编译软件,从而获得与用 C 和 C++编写的模拟器相媲美的性能。Python 中为每个组件制定类(class),从而在“主机系统”上为“客户系统”搭建了基础(系统运行 Python)。该客户系统就是虚拟的 Game Boy 硬件,理论上它能够运行为 Game Boy 编写的每一个软件部分。此外模拟器还添加了倒回功能,可以在任何游戏中倒回时间。

68_328583.gif@596w_1l.gif6p_328557.gif@596w_1l.gif

安装使用:

1、安装SDL2

Ubuntu: sudo apt install libsdl2-dev
Fedora: sudo dnf install SDL2-devel
macOS: brew install sdl2

2、安装PyBoy

pip install pyboy

3、使用
打开命令行终端,输入pyboy file.rom即可

https://github.com/Baekalfen/PyBoy


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK