SimpleNES
用C ++编写的NES模拟器(现在使用音频!)
大约50-60%的游戏应起作用(即使用映射器或映射器1、2、3的游戏,以及4、7、66和11的实验支持)。
已经测试的游戏示例(但不限于):
(美国/日本或世界版本仅兼容NTSC)
- 超级马里奥兄弟
- 反对
- 冒险岛
- 忍者·盖登(Ninja Gaiden)
- 破坏船员
- Megaman和Megaman 2
- 马里奥兄弟
- Donky Kong和Donkey Jr.
- 战城
- 纸男孩
- 塞尔达传说
- 帕克曼
- 网球
- 兴奋的自行车
- 噩梦榆树街
- 阴谋
- 战斗
- 拱门竞争对手
- ETC…
屏幕截图
视频
过时的(缺少音频)YouTube播放列表
编译
您需要:
- SFML 2.*开发标题和图书馆
- C ++ 11符合编译器
- CMAKE构建系统
编译直接使用Cmake,只需使用CMake_Build_Type = repares在项目目录上运行CMake,您将获得平台的makefile或等效词,您可以通过它们来编译模拟器
例如,在linux/os x/freebsd上:
SimpleNES
$ mkdir build/ && cd build/
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j4 # Replace 4 with however many cores you have to spare\”>
$ git clone https://g*i*thub*.com/amhndu/SimpleNES $ cd SimpleNES $ mkdir build/ && cd build/ $ cmake -DCMAKE_BUILD_TYPE=Release .. $ make -j4 # Replace 4 with however many cores you have to spare
如果将SFML安装在非标准位置上,请在AUR安装SFML2之后,将SFML_ROOT指定为CMAKE变量,例如Arch Linux上的CMAKE变量:
SimpleNES && mkdir build/ && cd build/
$ cmake -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=/opt/sfml2 ..
$ make -j8\”>
$ cd SimpleNES && mkdir build/ && cd build/ $ cmake -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=/opt/sfml2 .. $ make -j8
另请参阅:compile.yaml有关平台特定说明
下载SimpleNES
- 从最新的GitHub操作或最新版本中的最新运行中下载基于您的平台的可执行文件
- 安装SFML
安装SFML
- Windows:VCPKG安装SFML。交替,从SFML下载。请参阅:compile.yaml有关将SFML固定到版本2的说明
- debian/ubuntu/derivates:sudo apt安装-y libsfml -dev
- 拱/等:yay -s sfml2
- MACOS:BREW安装sfml@2 && brew link sfml@2
跑步
只需通过路径到达.Nes图像
$ ./ SimpleNES ~/Games/SuperMarioBros.nes
要设置窗口的大小,
$ ./ SimpleNES -w 600 ~/Games/Contra.nes
对于支持的命令行选项,请尝试
SimpleNES -h
SimpleNES is a simple NES emulator.
It can run off .nes images.
Set keybindings with keybindings.conf
Usage: SimpleNES [options] rom-path
Options:
-h, –help Print this help text and exit
–mute-audio Mute audio
-s, –scale Set video scale. Default: 3.
Scale of 1 corresponds to 256×240
-w, –width Set the width of the emulation screen (height is
set automatically to fit the aspect ratio)
-H, –height Set the height of the emulation screen (width is
set automatically to fit the aspect ratio)
This option is mutually exclusive to –width
-C, –conf Set the keybindings file\’s path. The default
keybindings file is keybindings.conf.
\”>
$ ./ SimpleNES -h
SimpleNES is a simple NES emulator.
It can run off .nes images.
Set keybindings with keybindings.conf
Usage: SimpleNES [options] rom-path
Options:
-h, --help Print this help text and exit
--mute-audio Mute audio
-s, --scale Set video scale. Default: 3.
Scale of 1 corresponds to 256x240
-w, --width Set the width of the emulation screen (height is
set automatically to fit the aspect ratio)
-H, --height Set the height of the emulation screen (width is
set automatically to fit the aspect ratio)
This option is mutually exclusive to --width
-C, --conf Set the keybindings file\'s path. The default
keybindings file is keybindings.conf.
控制器
可以使用keybindings.conf配置钥匙扣
默认键键:
球员1
| 按钮 | 映射到 |
|---|---|
| 开始 | 返回/输入 |
| 选择 | 右班 |
| 一个 | j |
| b | k |
| 向上 | w |
| 向下 | s |
| 左边 | 一个 |
| 正确的 | d |
玩家2
| 按钮 | 映射到 |
|---|---|
| 开始 | numpad9 |
| 选择 | numpad8 |
| 一个 | numpad5 |
| b | numpad6 |
| 向上 | 向上 |
| 向下 | 向下 |
| 左边 | 左边 |
| 正确的 | 正确的 |
