[ Pobierz całość w formacie PDF ]
.Many Linux games letmultiple players compete at separate computers connected via a network, such asthe Internet.Linux games may be freeware, shareware, or commercial software.Inaddition, Linux software such as Snes9X and WINE lets you play games originallywritten for systems other than Linux.9.2 Closeups of Some Popular GamesIn this section, you'll get acquainted with three popular games you can run underLinux:? DOOM, which runs on a console or under X? Quake II, which runs on a console or under X? StarCraft, which runs under X by using WINE9.2.1 DOOMOriginally written for MS-DOS by id Software ( http://www.idsoftware.com/),DOOM is the archetypal 3D action game.You play the role of a space marine,fighting your way through a series of bases on the moons of Mars that have beeninvaded by aliens.The game features real-time 3D graphics and stereo soundeffects.Figure 9.1 shows a typical game screen.Figure 9.1: A typical DOOM screenIf you prefer more cunning opponents, you can play the game in network mode, viamodem, or an IPX or TCP/IP network.Network mode lets you match wits withtwo to four human opponents.To run DOOM in a console, type the following command:sdoom -warp 1 1If you prefer to run DOOM under X, type the following command: xdoom -warp 1 1To call up DOOM's main menu, simply press Esc.You can learn more about DOOM by visiting the DOOM Archives athttp://www.idsoftware.com/archives/doomarc.html and the Linux DOOM FAQ athttp://jcomm.uoregon.edu/~stevev/Linux-DOOM-FAQ.html.You might also enjoylxDoom, a Linux port of Boom, which is an enhanced version of DOOM.9.2.2 Quake IILike DOOM, Quake II was also written by id Software.However, Quake II is amuch more modern and sophisticated program than DOOM.For example,Quake II's multi-player mode lets as many as 32 players wander the planet ofStroggos.And, the single-player mode pits you against 18 artificially intelligentadversaries, who dodge your careless shots with agile ease.Figure 9.2 shows atypical Quake II game screen.Figure 9.2: A typical Quake II screenTo run Quake II under X, change the working directory to the directory in whichyou installed Quake II, and issue the command:./quake2 +set vid_ref softxTo run Quake II using a virtual console, issue the command:./quake2 +set vid_ref softOnce the game is running, you can access its main menu by pressing Esc.9.2.3 StarcraftStarcraft is a real-time strategy game published by Blizzard Entertainment, in whichyou participate as the leader of a group of humans exiled at the edge of galacticspace.Your objective is to assemble a military force capable of dominating twoother species, the Protoss and the Zreg.To do so, you must build bases, vehicles,and weapons, and train soldiers for combat. Starcraft was not written for Linux; however, you can run it under Linux by usingWINE.Assuming that you have WINE installed on your system, the followingsections explain how to install and run Starcraft:9.2.3.1 Installing StarcraftIf you have the commercial version of Starcraft, mount the CD-ROM diskette andlocate the file install.exe.If you want to try the Starcraft demo, download the filescdemo.exe, which is a little over 28 MB in size.You can find the file on Blizzard'sWeb site ( http://www.blizzard.com/) and elsewhere.Change the current directory to the directory containing install.exe or scdemo.exeand use WINE to install Starcraft:wine -display localhost:0 -winver win95 scdemo.exeWhen asked if you want to install DirectX 5, highlight the No, But Continue optionand click on OK.Choose the directory in which you want to install Starcraft (thedefault choice is generally acceptable) and click on OK.If the program asks if youwant to register via the Internet, respond by clicking on No.Finally, click on Exitto terminate the install program.Under Linux, Starcraft operates in 256-color 640480 mode.Therefore, you mustadjust your X configuration to provide this mode.Here's a quick way to do that.First copy the file /etc/X11/XF86Config by issuing the following commands:cd /etc/X11cp XF86Config XF86Config.SAVEcp XF86Config XF86Config.StarCraftNow, edit the file XF86Config.StarCraft using the editor of your choice.Find the"Screen" section that specifies the X server (driver) you use and change the Depthparameter to 8 and the Modes parameter to "640x480".Delete any additionalmodes that appear.When you're done, the screen section should resemble thefollowing:Section "Screen"Driver "svga"Device "Millennium"Monitor "Viewsonic17GS"Subsection "Display"Depth 8Modes "640x480"ViewPort 0 0Virtual 640 480EndSubsectionEndSection9.2.3.2 Playing StarcraftTo play Starcraft, replace your XF86Config file with the newly edited one:cp XF86Config [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • swpc.opx.pl
  •