以前在windows下是時(shí)常會(huì)玩一把拳皇,玩的最多的莫過于kof97了。
換到Linux下后也想到玩一把,試過用wine安裝WinKawaks,可惜不能成功運(yùn)行。
后來直接搜了一下發(fā)現(xiàn)Linux下本身就有這類的游戲模擬器,還好多呢,用不著移植windows上的。
用的最多的莫過于xmame了,但是發(fā)現(xiàn)ubuntu可以方便的安裝:
apt-get install xmame
這就完成了,但是我的Fedora的yum中沒有啊,網(wǎng)上找了下發(fā)現(xiàn)就沒有fedora版的,
還好在這里http://pkgs.org/search/xmame找到了centos版的,兩個(gè)應(yīng)該差不多,下來安裝。
發(fā)現(xiàn)上面居然已經(jīng)有centos 7了,正式版都還沒發(fā)布呢,不過centos 7里面沒有我們需要的xmame,下載centos 6中的:
[liyd@localhost ~]$ sudo rpm -ivh xmame-0.106-1.el6.rf.x86_64.rpm
下來后安裝,一切順利,安照網(wǎng)上所說將運(yùn)行kof97的rom文件kof97.zip和neogeo.zip放到/usr/share/games/xmame/roms目錄,敲入命令:
[liyd@localhost ~]$ xmame kof97
但是運(yùn)行出現(xiàn)下面的錯(cuò)誤,怎么都不行:
[liyd@localhost Downloads]$ xmame kof97
GLINFO: loaded OpenGL library libGL.so.1!
GLINFO: loaded GLU library libGLU.so.1!
GLINFO: glColorSubTableEXT (2): not implemented !
info: trying to parse: /usr/share/xmame/xmamerc
info: trying to parse: /home/liyd/.xmame/xmamerc
info: trying to parse: /usr/share/xmame/xmame-x11rc
info: trying to parse: /home/liyd/.xmame/xmame-x11rc
info: trying to parse: /usr/share/xmame/rc/kof97rc
info: trying to parse: /home/liyd/.xmame/rc/kof97rc
loading rom 0: 232-p1.bin
loading rom 1: 232-p2.bin
loading rom 2: 232-s1.bin
loading rom 3: sfix.sfx
loading rom 4: sp-s2.sp1
loading rom 5: sm1.sm1
loading rom 6: 232-m1.bin
loading rom 7: 000-lo.lo
loading rom 8: 232-v1.bin
loading rom 9: 232-v2.bin
loading rom 10: 232-v3.bin
loading rom 11: 232-c1.bin
loading rom 12: 232-c2.bin
loading rom 13: 232-c3.bin
loading rom 14: 232-c4.bin
loading rom 15: 232-c5.bin
loading rom 16: 232-c6.bin
done
232-p1.bin NOT FOUND
232-p2.bin NOT FOUND
232-s1.bin NOT FOUND
sfix.sfx NOT FOUND
sp-s2.sp1 NOT FOUND
sm1.sm1 NOT FOUND
232-m1.bin NOT FOUND
000-lo.lo NOT FOUND
232-v1.bin NOT FOUND
232-v2.bin NOT FOUND
232-v3.bin NOT FOUND
232-c1.bin NOT FOUND
232-c2.bin NOT FOUND
232-c3.bin NOT FOUND
232-c4.bin NOT FOUND
232-c5.bin NOT FOUND
232-c6.bin NOT FOUND
ERROR: required files are missing, the game cannot be run.
網(wǎng)上沒有相關(guān)解決方案,只能自己慢慢摸索,最后發(fā)現(xiàn)是沒有安裝rom的支持包,下來安裝,上面的地址就有:
[liyd@localhost ~]$ sudo rpm -ivh xmame-roms-1.0-1.0.rf.noarch.rpm
安裝后發(fā)現(xiàn)多出一個(gè)目錄/usr/share/xmame/,進(jìn)入該目錄有以下內(nèi)容:
[liyd@localhost ~]$ cd /usr/share/xmame/
[liyd@localhost xmame]$ ll
total 19040
drwxr-xr-x. 2 root games 4096 Nov 22 2010 artwork
drwxr-xr-x. 5 root root 4096 Jul 4 13:01 cab
-rw-rw-r--. 1 root root 7971360 Apr 22 2004 cheat.dat
-rw-rw-r--. 1 root root 185060 Apr 11 2006 hiscore.dat
-rw-rw-r--. 1 root root 6319806 May 26 2006 history.dat
-rw-rw-r--. 1 root root 4992775 May 14 2006 mameinfo.dat
drwxr-xr-x. 2 root games 4096 Jul 4 14:06 roms
drwxr-xr-x. 2 root games 4096 Nov 22 2010 samples
drwxr-xr-x. 2 root games 4096 Nov 22 2010 snap
看到有roms文件夾,將kof97.zip和neogeo.zip放入,再運(yùn)行xmame kof97,終于正常。有圖有真相:
接下來就是設(shè)置游戲的按鍵了,順便貼一下:
Alt+PageDown 切換全屏/窗口模式
Shift+PageUp 放大 窗口
Shift+PageDown 縮小 窗口
P 硬件暫停/繼續(xù)
Esc 退出
F3 硬件reset
游戲鍵位的設(shè)定方法:
進(jìn)入游戲后,按Tab鍵進(jìn)入設(shè)定選單(之前可以先按P暫停游戲),
移動(dòng)光標(biāo),用Enter鍵進(jìn)入設(shè)置模式,輸入你想設(shè)定的鍵(注意,可能要稍微等幾秒才會(huì)看到你新設(shè)置的鍵出現(xiàn))