Article title: Linux is also a game simulator. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When talking about game simulators, I don't think you are new to them. There are many kinds of simulators in Windows, the most special of which is MAME. it is special not only because it can simulate thousands of types of arcade games, more importantly, it is a cross-platform arcade simulator. In addition to the MAME version running on Windows/DOS platforms, this simulator also has other versions running on non-Windows platforms. For example, the XMAME of the Linux platform. If you are using Linux recently and want to play arcade games, do not install the XMAME of the simulator for Linux. Then, you can use it to play large-scale arcade games such as "boxing 98", "Yuehua Jianshi 2", and "Himan vs. street bully" in the Linux system, 1, 2, and 3. Next, I will take the Redhat 7.0 in use as an example to introduce how to install and use XMAME.
Install XMAME
First, we need to download the new XMAME installation file on the Internet. Download URL: http://x.mame.net/download/xmame-0.37b14.1.tar.bz2
The installation file is a source code package. Therefore, we must compile and install it in Linux. This may be a headache for beginners of Linux, but it does not matter, as long as you follow the steps described by the author step by step to compile successfully.
Step 1: Copy the downloaded installation file to the/tmp Directory
Cp xmame-0.37b14.1.tar.bz2/tmp
Step 2: decompress the installation source code
Cd/tmp
Bunzip2 xmame-0.37b14.1.tar.bz2
Tar xvf xmame-0.37b14.1.tar
Step 3: Copy the configuration compilation script and compile the source program
Cd xmame-0.37b14.1
Cp makefile. unix Makefile
Make
If the compilation process is normal, you can find the executable file xmame. X11 in the/tmp/xmame-0.37b14.1 directory. Copy the file to/usr/local/bin. So far, all XMAME compilation is successful.
Configure XMAME
Just like playing MAME32 in Windows, parameter configuration is also required for XMAME during the first runtime. First, we log on to Linux as a normal user and create a. xmame directory under the root directory of the current user ("." cannot be omitted ). Then copy the default configuration file xmamerc preset in the/tmp/xmame-0.37b14.1/doc directory to the. xmame directory you just created. Modify the path parameters in the xmamerc file. Modify it as follows:
Rompath/usr/games/lib/xmame
Spooldir/usr/games/lib/xmame
Cheatfile/usr/games/lib/xmame/cheat. dat
Historyfile/usr/games/lib/xmame/history. dat
Mameinfofile/usr/games/lib/xmame/mameinfo. dat
Finally, we need to modify the XMAME running window size and change the default window size to double. Add two lines to the xmamerc configuration file.
Heightscale 2
Widthscale 2
After the modification is complete, save the disk and exit.
Use XMAME
The usage of XMAME is very similar to that of the DOS version of MAME. all of them run the game in the form of command lines. the command format is as follows:
Xmame. X11 [game name] [option parameter]
For specific parameter settings, enter "xmame. X11 -- help | more" to view help.
Next, I will give a brief introduction to how to use it to play "boxing 98.
Copy the ROM file and NeoGeo Bios file of boxing king 98 to the specified ROM Directory, that is, the previous/usr/games/lib/xmame directory. Then, in the X-Windows Terminal simulator, type xmame. X11 kof98. after a while, the cool game screen will appear in front of us (1 ).
The basic functions of XMAME are as follows:
Press the TAB key to go to the keyboard settings page (4 ),
Press the 5 key: coin cast
Press the 1 key: Player 1
Press the 2 key: Player 2
I also found that the XMAME of this version does not seem to run in the KDE 2.1.1 environment. Therefore, if you are using KDE 2.1.1 as the desktop system, switch to GNOME 1.2 or KDE 1.2 and run the XMAME game simulator. By now, the use of XMAME is completely described. Finally, let's take a few screenshots using XMAME. I wish you a good time (, 5 ).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.