~gumara/ubuntu-desktop-course/ubuntu-desktop-course-th-gumara

« back to all changes in this revision

Viewing changes to chapter5/Ubuntu_and_Games.xml

  • Committer: Torsten Spindler
  • Date: 2008-04-09 15:01:59 UTC
  • mfrom: (156.1.31 udcb-merge-RC)
  • mto: This revision was merged to the branch mainline in revision 158.
  • Revision ID: torsten@canonical.com-20080409150159-441iu6f2m45q01i3
Merged with development branch. Normalized docbook/xml and made it valid.
        * Fixed bug Screenshot on wrong page (LP: #158836)
        * Fixed bug Section 4.1.3 misleading (LP: #180106)
        * Fixed bug in notification area (LP: #184366)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd">
 
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
 
3
"http://docbook.org/xml/4.3/docbookx.dtd">
3
4
<chapter>
4
 
                <title>Ubuntu and Games</title>
5
 
                <para><emphasis role="strong">Objectives</emphasis></para>
6
 
                <para>In this lesson, you will learn how to:
7
 
                        <itemizedlist>
8
 
                                <listitem><para>Find and install games on Ubuntu</para></listitem>
9
 
                                <listitem><para>Play some of the more popular Ubuntu games</para></listitem>
10
 
                                <listitem><para>Configurations for other games</para></listitem>
11
 
                        </itemizedlist>
12
 
                </para>
13
 
                <sect1>
14
 
                        <title>Installing Games on Ubuntu</title>
15
 
                        <para>Gaming on Linux has been a point of discussion for a long time.
16
 
                        There is a strong argument that developing the gaming culture on Linux could contribute to its
17
 
                        commercialisation. An accepted fact is that it is a challenge for the
18
 
                        programmers to create competitive, open source games that match the sophistication
19
 
                        that proprietary games provide. However, constant support from the developers,
20
 
                        users and the community at large have made it possible to develop open source
21
 
                        games that can give some proprietary games a run for their money.</para>
22
 
                        <para>The default installation package of Ubuntu 7.10 comes with 17 Ubuntu
23
 
                        games, including Aisleriot, Solitaire, Gnometris and Mines. In addition, you can
24
 
                        install many games from other repositories. Different repositories store software according to their
25
 
                        proprietary status and the level of support each software receives from Canonical and the Ubuntu
26
 
                        community. This was covered in Lesson 1.</para>
27
 
                        <instructornote><title>Instructor Notes:</title><para><emphasis role="italic">Understanding repositories is 
28
 
                        important because games are located in various repositories. You may need to recap on 
29
 
                        Lesson 1. Pre-install the two games covered in the lesson on every computer prior to starting the day or session otherwise
30
 
                        this will take up too much time during class.</emphasis></para>
31
 
                        </instructornote>
32
 
                        <note><title><emphasis role="strong">Note:</emphasis></title>
33
 
                                <para>Enabling a repository is a one-time task. You do not have to
34
 
                                enable the repositories every time before installing software.</para></note>
35
 
                        <sect2>
36
 
                                <title>Installing a Game from a Repository</title>
37
 
                                <para><emphasis role="strong">Add/Remove Applications</emphasis> and
38
 
                                <emphasis role="strong">Synaptic Package Manager</emphasis> are the
39
 
                                Graphical User Interfaces (GUI) that enables you to install applications
40
 
                                from the Ubuntu repositories. You can also install or remove an application
41
 
                                by using Terminal. However, using <emphasis role="strong">Add/Remove
42
 
                                Applications</emphasis> is the easiest way to install a game on your
43
 
                                computer.</para>
44
 
                                <para>To install a game from a repository:
45
 
                                        <orderedlist numeration="arabic">
46
 
                                                <listitem><para>On the <emphasis role="strong">Applications</emphasis>
47
 
                                                menu, select <emphasis role="strong">Add/Remove</emphasis>.</para>
48
 
                                                <figure><title><emphasis role="italic">Launching Add/Remove</emphasis></title>
49
 
                                                        <mediaobject><imageobject>
50
 
                                                                <imagedata fileref="images/Lesson06_images_001.png" format="PNG" />
51
 
                                                        </imageobject></mediaobject>
52
 
                                                </figure>
53
 
                                                </listitem>
54
 
                                                <listitem><para>In the <emphasis role="strong">Add/Remove Applications
55
 
                                                </emphasis> window, select <emphasis role="strong">Games</emphasis>
56
 
                                                from the left pane of the window to display a list of games in the top
57
 
                                                section of the right pane, along with the popularity of each game among
58
 
                                                users. The bottom section in the right pane displays a brief description
59
 
                                                of the game selected in the top section.</para>
60
 
                                                <figure><title><emphasis role="italic">Add/Remove Applications window</emphasis></title>
61
 
                                                        <mediaobject><imageobject>
62
 
                                                                <imagedata fileref="images/Lesson06_images_002.png" format="PNG" />
63
 
                                                        </imageobject></mediaobject>
64
 
                                                </figure>
65
 
                                                </listitem>
66
 
                                                <listitem><para>The right pane, by default, displays the games supported
67
 
                                                by Canonical Limited. To change the list of games, click
68
 
                                                <emphasis role="strong">Supported Applications</emphasis> and select the
69
 
                                                appropriate option from the drop-down list.</para>
70
 
                                                <figure><title><emphasis role="italic">Changing List Option</emphasis></title>
71
 
                                                        <mediaobject><imageobject>
72
 
                                                                <imagedata fileref="images/Lesson06_images_003.png" format="PNG" />
73
 
                                                        </imageobject></mediaobject>
74
 
                                                </figure>
75
 
                                                </listitem>
76
 
                                                <listitem><para>You can navigate through the list of games or search a
77
 
                                                game by its name. To initiate a search, type the name of the game in the
78
 
                                                <emphasis role="strong">Search</emphasis> box and press Enter. The top
79
 
                                                section of the right pane displays the search results. Select the check
80
 
                                                box next to the game to mark it for installation and click
81
 
                                                <emphasis role="strong">Apply Changes</emphasis>. A dialogue box opens,
82
 
                                                which requires confirmation to proceed with the installation.</para>
83
 
                                                <figure><title><emphasis role="italic">Searching a Game</emphasis></title>
84
 
                                                        <mediaobject><imageobject>
85
 
                                                                <imagedata fileref="images/Lesson06_images_004.png" format="PNG" />
86
 
                                                        </imageobject></mediaobject>
87
 
                                                </figure>
88
 
                                                <note><title><emphasis role="strong">Note:</emphasis></title>
89
 
                                                <para>The search result is dependent on the display mode selected
90
 
                                                in the previous step. To widen the scope of search, select
91
 
                                                <emphasis role="strong">All Available Applications</emphasis> in the <emphasis role="strong">Show</emphasis>
92
 
                                                drop-down list.</para></note>
93
 
                                                <tip><title><emphasis role="strong">Nice to Know:</emphasis></title>
94
 
                                                <para>To remove a game from your computer, clear the check box next
95
 
                                                to that game and click <emphasis role="strong">Apply Changes</emphasis>.</para></tip>
96
 
                                                </listitem>
97
 
                                                <listitem><para>In the confirmation dialogue box, click
98
 
                                                <emphasis role="strong">Apply</emphasis> to proceed with the installation
99
 
                                                or click <emphasis role="strong">Cancel</emphasis> to return to the
100
 
                                                <emphasis role="strong">Add/Remove Applications</emphasis> window.</para>
101
 
                                                <figure><title><emphasis role="italic">Confirming Changes</emphasis></title>
102
 
                                                        <mediaobject><imageobject>
103
 
                                                                <imagedata fileref="images/Lesson06_images_005.png" format="PNG" />
104
 
                                                        </imageobject></mediaobject>
105
 
                                                </figure>
106
 
                                                </listitem>
107
 
                                                <listitem><para>After the installation of the game is complete, a dialogue
108
 
                                                box confirms the installation and provides the option to start the
109
 
                                                installed game, return to the <emphasis role="strong">Add/Remove Applications
110
 
                                                </emphasis> window or close it. Select the appropriate option in the dialogue
111
 
                                                box.</para>
112
 
                                                <figure><title><emphasis role="italic">Dialogue Box Confirming Installation</emphasis></title>
113
 
                                                        <mediaobject><imageobject>
114
 
                                                                <imagedata fileref="images/Lesson06_images_006.png" format="PNG" />
115
 
                                                        </imageobject></mediaobject>
116
 
                                                </figure>
117
 
                                                </listitem>
118
 
                                                <listitem><para>To launch the installed game from the desktop, point to
119
 
                                                <emphasis role="strong">Games</emphasis> on the <emphasis role="strong">
120
 
                                                Applications</emphasis> menu and click the name of the game to launch
121
 
                                                it.</para>
122
 
                                                <figure><title><emphasis role="italic">Launching a Game</emphasis></title>
123
 
                                                        <mediaobject><imageobject>
124
 
                                                                <imagedata fileref="images/Lesson06_images_007.png" format="PNG" />
125
 
                                                        </imageobject></mediaobject>
126
 
                                                </figure>
127
 
                                                </listitem>
128
 
                                        </orderedlist>
129
 
                                </para>
130
 
                                <para>Let's play!</para>
131
 
                        </sect2>
132
 
                </sect1>
133
 
                <sect1>
134
 
                        <title>Playing Ubuntu Games</title>
135
 
                        <instructornote><title>Instructor Notes:</title><para><emphasis role="italic">Allow the students to play these games for about 10 - 15 minutes.</emphasis></para>
136
 
                        </instructornote>
137
 
                        <para>Playing a game on Ubuntu is no different than playing it on any other Graphical
138
 
                        User Interface (GUI)-based operating system. There are no pre-requisites to play these games and the real fun is in exploring
139
 
                        these games yourself.</para>
140
 
                        <note><title><emphasis role="strong">Note:</emphasis></title>
141
 
                        <para>Ensure that you have hardware-accelerated 3D drivers installed
142
 
                        for your video card.</para></note>
143
 
                        <instructornote><title>Instructor Notes:</title><para><emphasis role="italic">To configure 3D acceleration on video cards see lesson 3 of this course or visit the
144
 
                        following Web site: <ulink url="http://doc.ubuntu.com/ubuntu/desktopguide/C/graphics-cards.html">http://doc.ubuntu.com/ubuntu/desktopguide/C/graphics-cards.html</ulink>.</emphasis></para>
145
 
                        </instructornote>
146
 
                        <sect2>
147
 
                                <title>Playing Frozen-Bubble</title>
148
 
                                <para>In Frozen-Bubble, you attempt to shoot bubbles into groups of the same
149
 
                                colour to cause them to pop. Frozen-Bubble is a clone of the popular Puzzle
150
 
                                Bobble game and features 100 single-player levels, two-player mode, music and
151
 
                                striking graphics. You can play this game with another player on your Local
152
 
                                Area Network (LAN) or invite a player on the Internet to play. Frozen-Bubble is not in the list of default games so you
153
 
                                should install it from the Universe repository.</para>
154
 
                                <note><title><emphasis role="strong">Note:</emphasis></title>
155
 
                                <para>This game does not have the option to turn off the sound. Therefore, if
156
 
                                you are playing this game at your workplace and do not want other people to
157
 
                                know, ensure that the speakers are turned off before launching
158
 
                                this game.</para></note>
159
 
                                <para>To play Frozen-Bubble:
160
 
                                        <orderedlist numeration="arabic">
161
 
                                                <listitem><para>On the <emphasis role="strong">Applications</emphasis>
162
 
                                                menu, point to <emphasis role="strong">Games</emphasis> and click
163
 
                                                <emphasis role="strong">Frozen-Bubble</emphasis> to launch the game.</para>
164
 
                                                <figure><title><emphasis role="italic">Launching Frozen-Bubble</emphasis></title>
165
 
                                                        <mediaobject><imageobject>
166
 
                                                                <imagedata fileref="images/Lesson06_images_008.png" format="PNG" />
167
 
                                                        </imageobject></mediaobject>
168
 
                                                </figure>
169
 
                                                </listitem>
170
 
                                                <listitem><para>The <emphasis role="strong">Frozen-Bubble 2</emphasis>
171
 
                                                window lists options to select the playing mode, customise the levels,
172
 
                                                change the resolution of the graphics, specify the keys on your keyboard
173
 
                                                with which you want to play this game or view the high scores list.</para>
174
 
                                                <figure><title><emphasis role="italic">Frozen-Bubble Main Menu</emphasis></title>
175
 
                                                        <mediaobject><imageobject>
176
 
                                                                <imagedata fileref="images/Lesson06_images_009.png" format="PNG" />
177
 
                                                        </imageobject></mediaobject>
178
 
                                                </figure>
179
 
                                                </listitem>
180
 
                                                <listitem><para>To start playing the game in single player mode, select
181
 
                                                <emphasis role="strong">START 1P GAMe</emphasis> and press
182
 
                                                <emphasis role="strong">Enter</emphasis> to display the
183
 
                                                <emphasis role="strong">Start 1- player game menu</emphasis>. Select
184
 
                                                <emphasis role="strong">PLAY DEFAULT LEVEL SeT</emphasis> and press
185
 
                                                <emphasis role="strong">Enter</emphasis> to launch Level 1 of the
186
 
                                                game.</para>
187
 
                                                <figure><title><emphasis role="italic">Single Player Game Menu</emphasis></title>
188
 
                                                        <mediaobject><imageobject>
189
 
                                                                <imagedata fileref="images/Lesson06_images_010.png" format="PNG" />
190
 
                                                        </imageobject></mediaobject>
191
 
                                                </figure>
192
 
                                                <note><title><emphasis role="strong">Note:</emphasis></title>
193
 
                                                <para>Use the up or down arrow keys to navigate through the
194
 
                                                options.</para></note>
195
 
                                                </listitem>
196
 
                                                <listitem><para>The aim of the game is to prevent the bubbles from
197
 
                                                reaching the penguin next to the igloo. At the start of the game, you
198
 
                                                will see an arrangement of coloured bubbles on the window, a bubble
199
 
                                                gun that contains a bubble, and a pointer. Use the left and right arrow
200
 
                                                keys to change the direction of the pointer and the space bar to fire
201
 
                                                the bubble. To pop the bubbles, you should hit at least three bubbles
202
 
                                                of the same colour. If the fired bubble hits a bubble of a different
203
 
                                                colour, it sticks to that bubble and is added to the arrangement.</para>
204
 
                                                <figure><title><emphasis role="italic">Playing Window</emphasis></title>
205
 
                                                        <mediaobject><imageobject>
206
 
                                                                <imagedata fileref="images/Lesson06_images_011.png" format="PNG" />
207
 
                                                        </imageobject></mediaobject>
208
 
                                                </figure>
209
 
                                                </listitem>
210
 
                                                <listitem><para>You have to fire the bubble from the bubble gun within
211
 
                                                seven seconds of firing the previous one; else, a <emphasis role="strong">
212
 
                                                Hurry</emphasis> warning flashes three times and the bubble gun fires the
213
 
                                                bubble automatically. The bubble appearing in the igloo window is the next
214
 
                                                bubble to appear in the gun.</para>
215
 
                                                <figure><title><emphasis role="italic">Flashing Hurry Warning</emphasis></title>
216
 
                                                        <mediaobject><imageobject>
217
 
                                                                <imagedata fileref="images/Lesson06_images_012.png" format="PNG" />
218
 
                                                        </imageobject></mediaobject>
219
 
                                                </figure>
220
 
                                                <para>To add to the plight of the poor penguin, FB-01 and FB-02 keep
221
 
                                                pushing the plank towards the penguin, reducing the area for the bubble
222
 
                                                arrangement.</para>
223
 
                                                </listitem>
224
 
                                                <listitem><para>If you succeed in popping all the bubbles, you win!
225
 
                                                You can then press any key to proceed to the next level; else,
226
 
                                                you will lose the round and will not be able to proceed to the next level
227
 
                                                until you win the current round.</para>
228
 
                                                <figure><title><emphasis role="italic">Displaying Level Results</emphasis></title>
229
 
                                                        <mediaobject><imageobject>
230
 
                                                                <imagedata fileref="images/Lesson06_images_013.png" format="PNG" />
231
 
                                                        </imageobject></mediaobject>
232
 
                                                </figure>
233
 
                                                <note><title><emphasis role="strong">Note:</emphasis></title>
234
 
                                                <para>Press the <emphasis role="strong">ESC</emphasis> key to go back to
235
 
                                                the previous window or close the application.</para></note>
236
 
                                                </listitem>
237
 
                                                <listitem><para>If you leave the game after achieving a high score,
238
 
                                                type your name in the window that opens and press Enter to display
239
 
                                                the high score listings. In the list, you can view the level you
240
 
                                                reached and the time taken to reach that level. Press
241
 
                                                <emphasis role="strong">ESC</emphasis> to return to the main menu.</para>
242
 
                                                <figure><title><emphasis role="italic">High Score Windows</emphasis></title>
243
 
                                                        <mediaobject><imageobject>
244
 
                                                                <imagedata fileref="images/Lesson06_images_014.png" format="PNG" />
245
 
                                                        </imageobject></mediaobject>
246
 
                                                </figure>
247
 
                                                </listitem>
248
 
                                        </orderedlist>
249
 
                                </para>
250
 
                                <para>If you do not like the pre-defined arrangement of the bubbles, you can
251
 
                                create your own arrangement by selecting <emphasis role="strong">Level editor
252
 
                                </emphasis> from the main menu.</para>
253
 
                                <instructornote><title>Instructor Notes:</title><para><emphasis role="italic">If time permits, ask the learners to use the level
254
 
                                editor, create some arrangements of their own and try the other options in the
255
 
                                window.</emphasis></para>
256
 
                                </instructornote>
257
 
                        </sect2>
258
 
                        <sect2>
259
 
                                <title>Playing PlanetPenguin Racer</title>
260
 
                                <para>PlanetPenguin Racer, also called ppracer, is a simple OpenGL racing game
261
 
                                featuring Tux, the Linux mascot. This game is based on the popular Linux game
262
 
                                Tux Racer. The goal of the game is to slide down a snow- and ice-covered mountain
263
 
                                as quickly as possible, avoiding the trees and rocks that will slow you down.</para>
264
 
                                <para>To play PlanetPenguin Racer:
265
 
                                        <orderedlist numeration="arabic">
266
 
                                                <listitem><para>Install the <emphasis role="strong">planetpenguin-racer</emphasis>
267
 
                                                package from the Universe repository.</para></listitem>
268
 
                                                <listitem><para>On the <emphasis role="strong">Applications</emphasis>
269
 
                                                menu, point to <emphasis role="strong">Games</emphasis> and click
270
 
                                                <emphasis role="strong">Planet Penguin Racer</emphasis> to launch the
271
 
                                                game.</para>
272
 
                                                <figure><title><emphasis role="italic">Launching PlanetPenguin Racer</emphasis></title>
273
 
                                                        <mediaobject><imageobject>
274
 
                                                                <imagedata fileref="images/Lesson06_images_015.png" format="PNG" />
275
 
                                                        </imageobject></mediaobject>
276
 
                                                </figure>
277
 
                                                </listitem>
278
 
                                                <listitem><para>Press any key on the keyboard to proceed to the next
279
 
                                                window.</para>
280
 
                                                <figure><title><emphasis role="italic">Starting Window</emphasis></title>
281
 
                                                        <mediaobject><imageobject>
282
 
                                                                <imagedata fileref="images/Lesson06_images_016.png" format="PNG" />
283
 
                                                        </imageobject></mediaobject>
284
 
                                                </figure>
285
 
                                                </listitem>
286
 
                                                <listitem><para>The next window displays the main menu of the game.
287
 
                                                Click the options on this menu to take part in a racing event,
288
 
                                                practise before entering any event, configure the game settings,
289
 
                                                view credits and quit the game.</para>
290
 
                                                <figure><title><emphasis role="italic">Entering an Event</emphasis></title>
291
 
                                                        <mediaobject><imageobject>
292
 
                                                                <imagedata fileref="images/Lesson06_images_017.png" format="PNG" />
293
 
                                                        </imageobject></mediaobject>
294
 
                                                </figure>
295
 
                                                </listitem>
296
 
                                                <listitem><para>You can play this game by using a computer keyboard or a
297
 
                                                joystick. On the main menu, click <emphasis role="strong">Configuration
298
 
                                                </emphasis> and then click <emphasis role="strong">Keyboard</emphasis> or
299
 
                                                <emphasis role="strong">Joystick</emphasis> to know their default key
300
 
                                                settings. You can also change the key settings according to your preferences.
301
 
                                                Click <emphasis role="strong">Back</emphasis> to return to the main menu.</para>
302
 
                                                <figure><title><emphasis role="italic">Configuration Options</emphasis></title>
303
 
                                                        <mediaobject><imageobject>
304
 
                                                                <imagedata fileref="images/Lesson06_images_018.png" format="PNG" />
305
 
                                                        </imageobject></mediaobject>
306
 
                                                </figure>
307
 
                                                </listitem>
308
 
                                                <listitem><para>On the main menu, click <emphasis role="strong">Enter an
309
 
                                                Event</emphasis>, select the event and the cup in which you want to
310
 
                                                participate and then click <emphasis role="strong">Continue</emphasis> to
311
 
                                                proceed.</para>
312
 
                                                <figure><title><emphasis role="italic">Selecting Event and Cup</emphasis></title>
313
 
                                                        <mediaobject><imageobject>
314
 
                                                                <imagedata fileref="images/Lesson06_images_019.png" format="PNG" />
315
 
                                                        </imageobject></mediaobject>
316
 
                                                </figure>
317
 
                                                </listitem>
318
 
                                                <listitem><para>The next window prompts you to select a race. As a beginner,
319
 
                                                you do not have any option but to continue with the default race. However,
320
 
                                                do read the <emphasis role="strong">Needed to advance</emphasis> information
321
 
                                                to know the minimum requirement to qualify for the next round in the cup.</para>
322
 
                                                </listitem>
323
 
                                                <listitem><para>Click <emphasis role="strong">Race!</emphasis> to start
324
 
                                                the race.</para>
325
 
                                                <figure><title><emphasis role="italic">Selecting a Race</emphasis></title>
326
 
                                                        <mediaobject><imageobject>
327
 
                                                                <imagedata fileref="images/Lesson06_images_020.png" format="PNG" />
328
 
                                                        </imageobject></mediaobject>
329
 
                                                </figure>
330
 
                                                </listitem>
331
 
                                                <listitem><para>The next window starts the race. The intent of the game is
332
 
                                                to make Tux reach the <emphasis role="strong">Finish</emphasis> line,
333
 
                                                collecting herrings on the way. If you succeed in reaching the
334
 
                                                <emphasis role="strong">Finish</emphasis> line within the parameters
335
 
                                                mentioned in <emphasis role="strong">Needed to advance</emphasis>, you
336
 
                                                proceed to the next round; else, you have to play the round again. There
337
 
                                                are four attempts or lives that you get to compete in an event. If you
338
 
                                                fail to satisfy the wining criteria, one life is deducted from the total.</para>
339
 
                                                <figure><title><emphasis role="italic">Playing PlanetPenguin Racer</emphasis></title>
340
 
                                                        <mediaobject><imageobject>
341
 
                                                                <imagedata fileref="images/Lesson06_images_021.png" format="PNG" />
342
 
                                                        </imageobject></mediaobject>
343
 
                                                </figure>
344
 
                                                </listitem>
345
 
                                        </orderedlist>
346
 
                                </para>
347
 
                                <para>You can win the cups only by practising and focusing on improving your
348
 
                                performance.</para>
349
 
                        </sect2>
350
 
                </sect1>
351
 
                <sect1>
352
 
                        <title>Playing Other Popular Games</title>
353
 
                        <para>In addition to all the games available in Ubuntu, you can play games created for
354
 
                        Microsoft Windows. However, to play Microsoft Windows games, you need the ability to 
355
 
                        run Windows applications in Ubuntu. There are two programmes that provide this ability -- Wine and Cedega.</para>
356
 
                        <sect2>
357
 
                                <title>Installing Wine</title>
358
 
                                <para>Cedega is not free software, so we will not cover how to install it. Instead, we will install
359
 
                                Wine:</para>
360
 
                                <instructornote><title>Instructor Notes:</title><para><emphasis role="italic">Before performing the following steps, ensure that
361
 
                                all the students have a Microsoft Windows game copied on their computer.</emphasis></para>
362
 
                                </instructornote>
363
 
                                <para>To install and configure Wine:
364
 
                                        <orderedlist numeration="arabic">
365
 
                                                <listitem><para>Install the <emphasis role="strong">wine</emphasis> and
366
 
                                                <emphasis role="strong">wine-dev</emphasis> packages from
367
 
                                                <emphasis role="strong">Synaptic Package Manager</emphasis>.</para></listitem>
368
 
                                                <listitem><para>The configuration of wine can be altered through Applications, Wine, Configure Wine.</para>
369
 
                                                </listitem>
370
 
                                                <listitem><para>This window allows you to customise a variety of settings
371
 
                                                for Wine, such as the Microsoft Windows version that is being simulated, drive
372
 
                                                mappings, as well as application-specific settings. Click
373
 
                                                <emphasis role="strong">OK</emphasis> to close the window.</para></listitem>
374
 
                                        </orderedlist>
375
 
                                </para>
376
 
                                <para>Install the <emphasis role="strong">wine</emphasis> and
377
 
                                                <emphasis role="strong">wine-dev</emphasis> packages from
378
 
                                                <emphasis role="strong">Synaptic Package Manager</emphasis>.</para>
379
 
                                <para>Wine is now configured on your computer with an artificial C: drive. You
380
 
                                can now access any Microsoft Windows application on Ubuntu by using Wine.</para>
381
 
                                <instructornote><title>Instructor Notes:</title><para>
382
 
                                  <emphasis role="italic">The information included in this document is sufficient for the students 
383
 
                                        to start playing games. The most suitable and easy method is chosen for illustration. 
384
 
                                        However, performing other tasks, such as adding CD and DVD drives to Wine or using Microsoft Windows 
385
 
                                        themes in Wine requires further configuration. If the students want to learn more about configuring Wine, 
386
 
                                        refer them to <ulink url="https://help.ubuntu.com/community/Wine">https://help.ubuntu.com/community/Wine</ulink></emphasis></para> </instructornote>
387
 
                        </sect2>
388
 
                        <sect2>
389
 
                                <title>Playing a Microsoft Windows Game on Ubuntu</title>
390
 
                                <para>After installing Wine on your computer, you can start playing Microsoft Windows
391
 
                                games on Ubuntu. A Microsoft Windows executable file can be started with Wine through right-click, Open with "Wine Windows Emulator".</para>
392
 
                                <para>If you install a Microsoft Windows application with Wine, an icon may be found in Applications, Other.</para>
393
 
                        </sect2>
394
 
                </sect1>
395
 
                <sect1>
396
 
                        <title>Lesson Summary</title>
397
 
                        <para>In this lesson, you learned that:
398
 
                                <itemizedlist>
399
 
                                        <listitem><para>You can install and play many games available
400
 
                                        by default on Ubuntu and in repositories.</para></listitem>
401
 
                                        <listitem><para>You can install games from the repositories in different ways.
402
 
                                        For example you can use the Add/Remove Applications, Synaptic Package Manager
403
 
                                        or the Terminal to install the games.</para></listitem>
404
 
                                        <listitem><para>You can play Microsoft Windows games on Ubuntu by installing a programme that
405
 
                                        provides a Microsoft Windows environment, such as Wine.</para></listitem>
406
 
                                </itemizedlist>
407
 
                        </para>
408
 
                </sect1>
409
 
                <questions>
410
 
                    <sect1>
411
 
                        <title>Review Exercise</title>
412
 
                        <para>Intentionally left blank.</para>
413
 
                    </sect1>
414
 
                </questions>
415
 
                <sect1>
416
 
                        <title>Lab Exercise</title>
417
 
                        <para><emphasis role="strong">Exercise 1: Installing a game on Ubuntu</emphasis></para>
418
 
                        <para>During a recent get together with your friends, you heard a lot of good things
419
 
                        about a game that they play on their Linux operating system. You wish to play the same
420
 
                        game, but you cannot find that game in the games package that got installed with Ubuntu.
421
 
                        What do you need to do in order to play this game on your computer?</para>
422
 
                        <para>To perform the required task:
423
 
                                <orderedlist numeration="arabic">
424
 
                                        <listitem><para>On the <emphasis role="strong">System</emphasis> menu, point
425
 
                                        to <emphasis role="strong">Administration</emphasis> and click
426
 
                                        <emphasis role="strong">Software Sources</emphasis> to display the
427
 
                                        <emphasis role="strong">Software Sources</emphasis> dialogue box.</para></listitem>
428
 
                                        <listitem><para>On the <emphasis role="strong">Software Sources</emphasis>
429
 
                                        dialogue box, select the check boxes next to main and universe options.
430
 
                                        Retain the <emphasis role="strong">Main server</emphasis> option in the
431
 
                                        <emphasis role="strong">Download from</emphasis> category and clear the
432
 
                                        <emphasis role="strong">CDrom with Ubuntu 7.10 "Gutsy Gibbon"</emphasis>
433
 
                                        check box.</para></listitem>
434
 
                                        <listitem><para>Click <emphasis role="strong">Close</emphasis> to display
435
 
                                        a prompt and then click <emphasis role="strong">Reload</emphasis> on the
436
 
                                        prompt to update the list of applications available.</para></listitem>
437
 
                                        <listitem><para>To install the game, select <emphasis role="strong">Add/Remove</emphasis> on the <emphasis role="strong">Applications</emphasis> menu to
438
 
                                        display the <emphasis role="strong">Add/Remove Applications</emphasis>
439
 
                                        window.</para></listitem>
440
 
                                        <listitem><para>Select <emphasis role="strong">Games</emphasis> in the left
441
 
                                        pane of the window, change the Show list option to <emphasis role="strong">All
442
 
                                        Open Source Applications</emphasis>, type the name of the game in the
443
 
                                        <emphasis role="strong">Search</emphasis> box and press Enter.</para></listitem>
444
 
                                        <listitem><para>Select the check box next to the game to mark it for
445
 
                                        installation and click <emphasis role="strong">Apply
446
 
                                        Changes</emphasis>.</para></listitem>
447
 
                                        <listitem><para>On the confirmation dialogue box, click <emphasis role="strong">
448
 
                                        Apply</emphasis> to proceed.</para></listitem>
449
 
                                        <listitem><para>After the installation of the game is complete, a dialogue
450
 
                                        box confirms the installation and provides the option to launch the installed
451
 
                                        game. Double-click the name of the game to launch it. Alternatively, you can
452
 
                                        close this dialogue box and launch the game by using the
453
 
                                        <emphasis role="strong">Applications</emphasis> menu on the desktop.</para></listitem>
454
 
                                </orderedlist>
455
 
                        </para>
456
 
                        <para><emphasis role="strong">Exercise 2: Installing Wine and playing a Microsoft Windows game
457
 
                        on Ubuntu</emphasis></para>
458
 
                        <para>You were browsing the Web one day and came across an interesting game. You
459
 
                        downloaded it and every thing seemed fine until you realise that the
460
 
                        game could be played only on Microsoft Windows, which is not installed on your
461
 
                        computer. You really liked the game, how do you play this on Ubuntu?</para>
462
 
                        <para>To play a Windows game on Ubuntu:
463
 
                                <orderedlist numeration="arabic">
464
 
                                        <listitem><para>Install <emphasis role="strong">wine</emphasis> and
465
 
                                        <emphasis role="strong">wine-dev</emphasis> packages from
466
 
                                        <emphasis role="strong">Synaptic Package Manager</emphasis>.</para></listitem>
467
 
                                        <listitem><para>Open the games setup tool with Wine.</para></listitem>
468
 
                                        <listitem><para>Start the games from the Applications menu.</para></listitem>
469
 
                                </orderedlist>
470
 
                        </para>
471
 
                </sect1>
472
 
</chapter>
473
 
 
 
5
  <title>Ubuntu and Games</title>
 
6
 
 
7
  <formalpara>
 
8
    <title>Objectives</title>
 
9
 
 
10
    <para>In this lesson, you will learn how to: <itemizedlist>
 
11
        <listitem>
 
12
          <para>Find and install games on Ubuntu</para>
 
13
        </listitem>
 
14
 
 
15
        <listitem>
 
16
          <para>Play some of the more popular Ubuntu games</para>
 
17
        </listitem>
 
18
 
 
19
        <listitem>
 
20
          <para>Configure other games</para>
 
21
        </listitem>
 
22
      </itemizedlist></para>
 
23
  </formalpara>
 
24
 
 
25
  <sect1>
 
26
    <title>Installing Games on Ubuntu</title>
 
27
 
 
28
    <para>The default installation package of Ubuntu 7.10 comes with 17 Ubuntu
 
29
    games, including Aisleriot, Solitaire, Gnometris and Mines. In addition,
 
30
    you can install many games from other repositories.</para>
 
31
 
 
32
    <note userlevel="instructor">
 
33
      <title>Instructor Notes:</title>
 
34
 
 
35
      <para>Understanding repositories is important because games are located
 
36
      in various repositories. You may need to recap on Lesson 1. Pre-install
 
37
      the two games covered in the lesson on every computer prior to starting
 
38
      the day or session otherwise this will take up too much time during
 
39
      class.</para>
 
40
    </note>
 
41
 
 
42
    <note>
 
43
      <title>Note:</title>
 
44
 
 
45
      <para>Enabling a repository is a one-time task. You do not have to
 
46
      enable the repositories every time before installing software.</para>
 
47
    </note>
 
48
 
 
49
    <sect2>
 
50
      <title>Installing a Game from a Repository</title>
 
51
 
 
52
      <para><emphasis role="strong">Add/Remove Applications</emphasis>&gt;and
 
53
      <emphasis role="strong">Synaptic Package Manager</emphasis> are the
 
54
      Graphical User Interfaces (GUI) that enables you to install applications
 
55
      from the Ubuntu repositories. However, using <emphasis
 
56
      role="strong">Add/Remove Applications</emphasis> is the easiest way to
 
57
      install a game on your computer.</para>
 
58
 
 
59
      <procedure>
 
60
        <title>To install a game from a repository:</title>
 
61
 
 
62
        <step performance="required">
 
63
          <para>On the <emphasis role="strong">Applications</emphasis> menu,
 
64
          select <emphasis role="strong">Add/Remove</emphasis>.</para>
 
65
 
 
66
          <figure float="0">
 
67
            <title>Launching Add/Remove</title>
 
68
 
 
69
            <mediaobject>
 
70
              <imageobject>
 
71
                <imagedata fileref="images/Lesson06_images_001.png"
 
72
                           format="PNG" width="4cm" />
 
73
              </imageobject>
 
74
            </mediaobject>
 
75
          </figure>
 
76
        </step>
 
77
 
 
78
        <step performance="required">
 
79
          <para>In the <emphasis role="strong">Add/Remove
 
80
          Applications</emphasis> window, select <emphasis
 
81
          role="strong">Games</emphasis> from the left pane of the window to
 
82
          display a list of games in the top section of the right pane, along
 
83
          with the popularity of each game among users. The bottom section in
 
84
          the right pane displays a brief description of the game
 
85
          selected.</para>
 
86
 
 
87
          <figure float="0">
 
88
            <title>Add/Remove Applications window</title>
 
89
 
 
90
            <mediaobject>
 
91
              <imageobject>
 
92
                <imagedata fileref="images/Lesson06_images_002.png"
 
93
                           format="PNG" width="8cm" />
 
94
              </imageobject>
 
95
            </mediaobject>
 
96
          </figure>
 
97
        </step>
 
98
 
 
99
        <step performance="required">
 
100
          <para>The right pane, by default, displays the games supported by
 
101
          Canonical Limited. To change the list of games, click <emphasis
 
102
          role="strong">Supported Applications</emphasis> and select the
 
103
          appropriate option from the drop-down list.</para>
 
104
 
 
105
          <figure float="0">
 
106
            <title>Changing List Option</title>
 
107
 
 
108
            <mediaobject>
 
109
              <imageobject>
 
110
                <imagedata fileref="images/Lesson06_images_003.png"
 
111
                           format="PNG" width="10cm" />
 
112
              </imageobject>
 
113
            </mediaobject>
 
114
          </figure>
 
115
        </step>
 
116
 
 
117
        <step performance="required">
 
118
          <para>You can navigate through the list of games or search a game by
 
119
          its name. To initiate a search, type the name of the game in the
 
120
          <emphasis role="strong">Search</emphasis> box and press Enter. The
 
121
          top section of the right pane displays the search results. Select
 
122
          the check box next to the game to mark it for installation and click
 
123
          <emphasis role="strong">Apply Changes</emphasis>. A dialogue box
 
124
          opens, which requires confirmation to proceed with the
 
125
          installation.</para>
 
126
 
 
127
          <figure float="0">
 
128
            <title>Searching a Game</title>
 
129
 
 
130
            <mediaobject>
 
131
              <imageobject>
 
132
                <imagedata fileref="images/Lesson06_images_004.png"
 
133
                           format="PNG" width="10cm" />
 
134
              </imageobject>
 
135
            </mediaobject>
 
136
          </figure>
 
137
 
 
138
          <note>
 
139
            <title>Note:</title>
 
140
 
 
141
            <para>The search result is dependent on the display mode selected
 
142
            in the previous step. To widen the scope of search, select
 
143
            <emphasis role="strong">All Available Applications</emphasis> in
 
144
            the <emphasis role="strong">Show</emphasis> drop-down list.</para>
 
145
          </note>
 
146
 
 
147
          <tip>
 
148
            <title>Nice to Know:</title>
 
149
 
 
150
            <para>To remove a game from your computer, clear the check box
 
151
            next to that game and click <emphasis role="strong">Apply
 
152
            Changes</emphasis>.</para>
 
153
          </tip>
 
154
        </step>
 
155
 
 
156
        <step performance="required">
 
157
          <para>In the confirmation dialogue box, click <emphasis
 
158
          role="strong">Apply</emphasis> to proceed with the installation or
 
159
          click <emphasis role="strong">Cancel</emphasis> to return to the
 
160
          <emphasis role="strong">Add/Remove Applications</emphasis>
 
161
          window.</para>
 
162
 
 
163
          <figure float="0">
 
164
            <title>Confirming Changes</title>
 
165
 
 
166
            <mediaobject>
 
167
              <imageobject>
 
168
                <imagedata fileref="images/Lesson06_images_005.png"
 
169
                           format="PNG" width="6cm" />
 
170
              </imageobject>
 
171
            </mediaobject>
 
172
          </figure>
 
173
        </step>
 
174
 
 
175
        <step performance="required">
 
176
          <para>After the installation is complete, a dialogue box confirms
 
177
          the installation and provides the option to start the installed
 
178
          game, return to the <emphasis role="strong">Add/Remove
 
179
          Applications</emphasis> window or close it. Select the appropriate
 
180
          option in the dialogue box.</para>
 
181
 
 
182
          <figure float="0">
 
183
            <title>Dialogue Box Confirming Installation</title>
 
184
 
 
185
            <mediaobject>
 
186
              <imageobject>
 
187
                <imagedata fileref="images/Lesson06_images_006.png"
 
188
                           format="PNG" width="6cm" />
 
189
              </imageobject>
 
190
            </mediaobject>
 
191
          </figure>
 
192
        </step>
 
193
 
 
194
        <step performance="required">
 
195
          <para>To launch the installed game from the desktop, point to
 
196
          <emphasis role="strong">Games</emphasis> on the <emphasis
 
197
          role="strong">Applications</emphasis> menu and click the name of the
 
198
          game.</para>
 
199
 
 
200
          <figure float="0">
 
201
            <title>Launching a Game</title>
 
202
 
 
203
            <mediaobject>
 
204
              <imageobject>
 
205
                <imagedata fileref="images/Lesson06_images_007.png"
 
206
                           format="PNG" width="11cm" />
 
207
              </imageobject>
 
208
            </mediaobject>
 
209
          </figure>
 
210
        </step>
 
211
      </procedure>
 
212
 
 
213
      <para>Let's play!</para>
 
214
    </sect2>
 
215
  </sect1>
 
216
 
 
217
  <sect1>
 
218
    <title>Playing Ubuntu Games</title>
 
219
 
 
220
    <note userlevel="instructor">
 
221
      <title>Instructor Notes:</title>
 
222
 
 
223
      <para>Allow the students to play these games for about 10 - 15
 
224
      minutes.</para>
 
225
    </note>
 
226
 
 
227
    <para>Playing a game on Ubuntu is no different than playing it on any
 
228
    other Graphical User Interface (GUI)-based operating system. There are no
 
229
    pre-requisites to play these games and the real fun is in exploring these
 
230
    games yourself.</para>
 
231
 
 
232
    <note>
 
233
      <title>Note:</title>
 
234
 
 
235
      <para>Ensure that you have hardware-accelerated 3D drivers installed for
 
236
      your video card.</para>
 
237
    </note>
 
238
 
 
239
    <note userlevel="instructor">
 
240
      <title>Instructor Notes:</title>
 
241
 
 
242
      <para>To configure 3D acceleration on video cards see lesson 3 of this
 
243
      course or visit the following Web site: <ulink
 
244
      url="http://doc.ubuntu.com/ubuntu/desktopguide/C/graphics-cards.html">http://doc.ubuntu.com/ubuntu/desktopguide/C/graphics-cards.html</ulink>.</para>
 
245
    </note>
 
246
 
 
247
    <sect2>
 
248
      <title>Playing Frozen-Bubble</title>
 
249
 
 
250
      <para>In Frozen-Bubble, you attempt to shoot bubbles into groups of the
 
251
      same colour to cause them to pop. Frozen-Bubble is a clone of the
 
252
      popular Puzzle Bobble game and features 100 single-player levels,
 
253
      two-player mode, music and striking graphics. You can play this game
 
254
      with another player on your Local Area Network (LAN) or invite a player
 
255
      on the Internet to play. Frozen-Bubble is not in the list of default
 
256
      games so you should install it from the Universe repository.</para>
 
257
 
 
258
      <note>
 
259
        <title>Note:</title>
 
260
 
 
261
        <para>This game does not have the option to turn off the sound.
 
262
        Therefore, if you are playing this game at your workplace and do not
 
263
        want other people to know, ensure that the speakers are turned off
 
264
        before launching this game.</para>
 
265
      </note>
 
266
 
 
267
      <procedure>
 
268
        <title>To play Frozen-Bubble:</title>
 
269
 
 
270
        <step performance="required">
 
271
          <para>On the <emphasis role="strong">Applications</emphasis> menu,
 
272
          point to <emphasis role="strong">Games</emphasis> and click
 
273
          <emphasis role="strong">Frozen-Bubble</emphasis> to launch the
 
274
          game.</para>
 
275
 
 
276
          <figure float="0">
 
277
            <title>Launching Frozen-Bubble</title>
 
278
 
 
279
            <mediaobject>
 
280
              <imageobject>
 
281
                <imagedata fileref="images/Lesson06_images_008.png"
 
282
                           format="PNG" width="10.4cm" />
 
283
              </imageobject>
 
284
            </mediaobject>
 
285
          </figure>
 
286
        </step>
 
287
 
 
288
        <step performance="required">
 
289
          <para>The <emphasis role="strong">Frozen-Bubble 2</emphasis> window
 
290
          lists options to select the playing mode, customise the levels,
 
291
          change the resolution of the graphics, specify the keys on your
 
292
          keyboard with which you want to play this game or view the high
 
293
          scores list.</para>
 
294
 
 
295
          <figure float="0">
 
296
            <title>Frozen-Bubble Main Menu</title>
 
297
 
 
298
            <mediaobject>
 
299
              <imageobject>
 
300
                <imagedata fileref="images/Lesson06_images_009.png"
 
301
                           format="PNG" width="8cm" />
 
302
              </imageobject>
 
303
            </mediaobject>
 
304
          </figure>
 
305
        </step>
 
306
 
 
307
        <step performance="required">
 
308
          <para>To start playing the game in single player mode, select
 
309
          <emphasis role="strong">START 1P GAMe</emphasis> and press <emphasis
 
310
          role="strong">Enter</emphasis> to display the <emphasis
 
311
          role="strong">Start 1- player game menu</emphasis>. Select <emphasis
 
312
          role="strong">PLAY DEFAULT LEVEL SeT</emphasis> and press <emphasis
 
313
          role="strong">Enter</emphasis> to launch Level 1 of the game.</para>
 
314
 
 
315
          <figure float="0">
 
316
            <title>Single Player Game Menu</title>
 
317
 
 
318
            <mediaobject>
 
319
              <imageobject>
 
320
                <imagedata fileref="images/Lesson06_images_010.png"
 
321
                           format="PNG" width="2cm" />
 
322
              </imageobject>
 
323
            </mediaobject>
 
324
          </figure>
 
325
 
 
326
          <note>
 
327
            <title>Note:</title>
 
328
 
 
329
            <para>Use the up or down arrow keys to navigate through the
 
330
            options.</para>
 
331
          </note>
 
332
        </step>
 
333
 
 
334
        <step performance="required">
 
335
          <para>The aim of the game is to prevent the bubbles from reaching
 
336
          the penguin next to the igloo. At the start of the game, you will
 
337
          see an arrangement of coloured bubbles on the window, a bubble gun
 
338
          that contains a bubble, and a pointer. Use the left and right arrow
 
339
          keys to change the direction of the pointer and the space bar to
 
340
          fire the bubble. To pop the bubbles, you should hit at least three
 
341
          bubbles of the same colour. If the fired bubble hits a bubble of a
 
342
          different colour, it sticks to that bubble and is added to the
 
343
          arrangement.</para>
 
344
 
 
345
          <figure float="0">
 
346
            <title>Playing Window</title>
 
347
 
 
348
            <mediaobject>
 
349
              <imageobject>
 
350
                <imagedata fileref="images/Lesson06_images_011.png"
 
351
                           format="PNG" width="9cm" />
 
352
              </imageobject>
 
353
            </mediaobject>
 
354
          </figure>
 
355
        </step>
 
356
 
 
357
        <step performance="required">
 
358
          <para>You have to fire the bubble from the bubble gun within seven
 
359
          seconds of firing the previous one; otherwise, a <emphasis
 
360
          role="strong">Hurry</emphasis> warning flashes three times and the
 
361
          bubble gun fires the bubble automatically. The bubble appearing in
 
362
          the igloo window is the next bubble to appear in the gun.</para>
 
363
 
 
364
          <figure float="0">
 
365
            <title>Flashing Hurry Warning</title>
 
366
 
 
367
            <mediaobject>
 
368
              <imageobject>
 
369
                <imagedata fileref="images/Lesson06_images_012.png"
 
370
                           format="PNG" width="5cm" />
 
371
              </imageobject>
 
372
            </mediaobject>
 
373
          </figure>
 
374
 
 
375
          <para>To add to the plight of the poor penguin, FB-01 and FB-02 keep
 
376
          pushing the plank towards the penguin, reducing the area for the
 
377
          bubble arrangement.</para>
 
378
        </step>
 
379
 
 
380
        <step performance="required">
 
381
          <para>If you succeed in popping all the bubbles, you win! You can
 
382
          then press any key to proceed to the next level.</para>
 
383
 
 
384
          <figure float="0">
 
385
            <title>Displaying Level Results</title>
 
386
 
 
387
            <mediaobject>
 
388
              <imageobject>
 
389
                <imagedata fileref="images/Lesson06_images_013.png"
 
390
                           format="PNG" width="15cm" />
 
391
              </imageobject>
 
392
            </mediaobject>
 
393
          </figure>
 
394
 
 
395
          <note>
 
396
            <title>Note:</title>
 
397
 
 
398
            <para>Press the <emphasis role="strong">ESC</emphasis> key to go
 
399
            back to the previous window or close the application.</para>
 
400
          </note>
 
401
        </step>
 
402
 
 
403
        <step performance="required">
 
404
          <para>If you leave the game after achieving a high score, type your
 
405
          name in the window that opens and press <emphasis
 
406
          role="strong">Enter</emphasis> to display the high score listings.
 
407
          In the list, you can view the level you reached and the time taken
 
408
          to reach that level. Press <emphasis role="strong">ESC</emphasis> to
 
409
          return to the main menu.</para>
 
410
 
 
411
          <figure float="0">
 
412
            <title>High Score Windows</title>
 
413
 
 
414
            <mediaobject>
 
415
              <imageobject>
 
416
                <imagedata fileref="images/Lesson06_images_014.png"
 
417
                           format="PNG" width="8cm" />
 
418
              </imageobject>
 
419
            </mediaobject>
 
420
          </figure>
 
421
        </step>
 
422
      </procedure>
 
423
 
 
424
      <para>If you do not like the pre-defined arrangement of the bubbles, you
 
425
      can create your own arrangement by selecting <emphasis
 
426
      role="strong">Level editor</emphasis> from the main menu.</para>
 
427
 
 
428
      <note userlevel="instructor">
 
429
        <title>Instructor Notes:</title>
 
430
 
 
431
        <para>If time permits, ask the learners to use the level editor,
 
432
        create some arrangements of their own and try the other options in the
 
433
        window.</para>
 
434
      </note>
 
435
    </sect2>
 
436
 
 
437
    <sect2>
 
438
      <title>Playing PlanetPenguin Racer</title>
 
439
 
 
440
      <para>PlanetPenguin Racer, also called ppracer, is a simple racing game
 
441
      featuring Tux, the Linux mascot. This game is based on the popular Linux
 
442
      game Tux Racer. The goal of the game is to slide down a snow and ice
 
443
      covered mountain as quickly as possible, avoiding the trees and rocks
 
444
      that will slow you down.</para>
 
445
 
 
446
      <procedure>
 
447
        <title>To play PlanetPenguin Racer:</title>
 
448
 
 
449
        <step performance="required">
 
450
          <para>Install the <emphasis role="strong">
 
451
          planetpenguin-racer</emphasis> package from the Universe
 
452
          repository.</para>
 
453
        </step>
 
454
 
 
455
        <step performance="required">
 
456
          <para>On the <emphasis role="strong">Applications</emphasis> menu,
 
457
          point to <emphasis role="strong">Games</emphasis> and click
 
458
          <emphasis role="strong">Planet Penguin Racer</emphasis> to launch
 
459
          the game.</para>
 
460
 
 
461
          <figure float="0">
 
462
            <title>Launching PlanetPenguin Racer</title>
 
463
 
 
464
            <mediaobject>
 
465
              <imageobject>
 
466
                <imagedata fileref="images/Lesson06_images_015.png"
 
467
                           format="PNG" width="11cm" />
 
468
              </imageobject>
 
469
            </mediaobject>
 
470
          </figure>
 
471
        </step>
 
472
 
 
473
        <step performance="required">
 
474
          <para>Press any key on the keyboard to proceed to the next
 
475
          window.</para>
 
476
 
 
477
          <figure float="0">
 
478
            <title>Starting Window</title>
 
479
 
 
480
            <mediaobject>
 
481
              <imageobject>
 
482
                <imagedata fileref="images/Lesson06_images_016.png"
 
483
                           format="PNG" width="15cm" />
 
484
              </imageobject>
 
485
            </mediaobject>
 
486
          </figure>
 
487
        </step>
 
488
 
 
489
        <step performance="required">
 
490
          <para>The next window displays the main menu of the game. Click the
 
491
          options on this menu to take part in a racing event, practise before
 
492
          entering any event, configure the game settings, view credits and
 
493
          quit the game.</para>
 
494
 
 
495
          <figure float="0">
 
496
            <title>Entering an Event</title>
 
497
 
 
498
            <mediaobject>
 
499
              <imageobject>
 
500
                <imagedata fileref="images/Lesson06_images_017.png"
 
501
                           format="PNG" width="11.5cm" />
 
502
              </imageobject>
 
503
            </mediaobject>
 
504
          </figure>
 
505
        </step>
 
506
 
 
507
        <step performance="required">
 
508
          <para>You can play this game by using a computer keyboard or a
 
509
          joystick. On the main menu, click <emphasis
 
510
          role="strong">Configuration</emphasis> and then click <emphasis
 
511
          role="strong">Keyboard</emphasis> or <emphasis
 
512
          role="strong">Joystick</emphasis> to know their default key
 
513
          settings. You can also change the key settings according to your
 
514
          preferences. Click <emphasis role="strong">Back</emphasis> to return
 
515
          to the main menu.</para>
 
516
 
 
517
          <figure float="0">
 
518
            <title>Configuration Options</title>
 
519
 
 
520
            <mediaobject>
 
521
              <imageobject>
 
522
                <imagedata fileref="images/Lesson06_images_018.png"
 
523
                           format="PNG" width="11.5cm" />
 
524
              </imageobject>
 
525
            </mediaobject>
 
526
          </figure>
 
527
        </step>
 
528
 
 
529
        <step performance="required">
 
530
          <para>On the main menu, click <emphasis role="strong">Enter an
 
531
          Event</emphasis>, select the event and the cup in which you want to
 
532
          participate and then click <emphasis
 
533
          role="strong">Continue</emphasis> to proceed.</para>
 
534
 
 
535
          <figure float="0">
 
536
            <title>Selecting Event and Cup</title>
 
537
 
 
538
            <mediaobject>
 
539
              <imageobject>
 
540
                <imagedata fileref="images/Lesson06_images_019.png"
 
541
                           format="PNG" width="11.5cm" />
 
542
              </imageobject>
 
543
            </mediaobject>
 
544
          </figure>
 
545
        </step>
 
546
 
 
547
        <step performance="required">
 
548
          <para>The next window prompts you to select a race. As a beginner,
 
549
          you do not have any option but to continue with the default race.
 
550
          However, do read the <emphasis role="strong">Needed to
 
551
          advance</emphasis> information to know the minimum requirement to
 
552
          qualify for the next round in the cup.</para>
 
553
        </step>
 
554
 
 
555
        <step performance="required">
 
556
          <para>Click <emphasis role="strong">Race!</emphasis> to start the
 
557
          race.</para>
 
558
 
 
559
          <figure float="0">
 
560
            <title>Selecting a Race</title>
 
561
 
 
562
            <mediaobject>
 
563
              <imageobject>
 
564
                <imagedata fileref="images/Lesson06_images_020.png"
 
565
                           format="PNG" width="11.5cm" />
 
566
              </imageobject>
 
567
            </mediaobject>
 
568
          </figure>
 
569
        </step>
 
570
 
 
571
        <step performance="required">
 
572
          <para>The next window starts the race. The intent of the game is to
 
573
          make Tux reach the <emphasis role="strong">Finish</emphasis> line,
 
574
          collecting herrings on the way. If you succeed in reaching the
 
575
          <emphasis role="strong">Finish</emphasis> line within the parameters
 
576
          mentioned in <emphasis role="strong">Needed to advance</emphasis>,
 
577
          you proceed to the next round; otherwise, you have to play the round
 
578
          again. There are four attempts or lives that you get to compete in
 
579
          an event. If you fail to satisfy the wining criteria, one life is
 
580
          deducted.</para>
 
581
 
 
582
          <figure float="0">
 
583
            <title>Playing PlanetPenguin Racer</title>
 
584
 
 
585
            <mediaobject>
 
586
              <imageobject>
 
587
                <imagedata fileref="images/Lesson06_images_021.png"
 
588
                           format="PNG" width="8cm" />
 
589
              </imageobject>
 
590
            </mediaobject>
 
591
          </figure>
 
592
        </step>
 
593
      </procedure>
 
594
 
 
595
      <para>You can win the cups only by practising and focusing on improving
 
596
      your performance.</para>
 
597
    </sect2>
 
598
  </sect1>
 
599
 
 
600
  <sect1>
 
601
    <title>Playing Other Popular Games</title>
 
602
 
 
603
    <para>In addition to all the games available in Ubuntu, you can play games
 
604
    created for Microsoft Windows. However, to do so, you need the ability to
 
605
    run Windows applications in Ubuntu. There are two programmes that provide
 
606
    this ability -- Wine and Cedega.</para>
 
607
 
 
608
    <sect2>
 
609
      <title>Installing Wine</title>
 
610
 
 
611
      <para>Cedega is not free software, so we will not cover how to install
 
612
      it. Instead, we will install Wine:</para>
 
613
 
 
614
      <note userlevel="instructor">
 
615
        <title>Instructor Notes:</title>
 
616
 
 
617
        <para>Before performing the following steps, ensure that all the
 
618
        students have a Microsoft Windows game copied on their
 
619
        computer.</para>
 
620
      </note>
 
621
 
 
622
      <procedure>
 
623
        <title>To install and configure Wine:</title>
 
624
 
 
625
        <step performance="required">
 
626
          <para>Install the <emphasis role="strong">wine</emphasis> and
 
627
          <emphasis role="strong">wine-dev</emphasis> packages from <emphasis
 
628
          role="strong">Synaptic Package Manager</emphasis>.</para>
 
629
        </step>
 
630
 
 
631
        <step performance="required">
 
632
          <para>The configuration of wine can be altered through <emphasis
 
633
          role="strong">Applications</emphasis>, <emphasis
 
634
          role="strong">Wine</emphasis>, <emphasis role="strong">Configure
 
635
          Wine</emphasis>.</para>
 
636
        </step>
 
637
 
 
638
        <step performance="required">
 
639
          <para>This window allows you to customise a variety of settings for
 
640
          Wine, such as the Microsoft Windows version that is being simulated,
 
641
          drive mappings, as well as application-specific settings. Click
 
642
          <emphasis role="strong">OK</emphasis> to close the window.</para>
 
643
        </step>
 
644
      </procedure>
 
645
 
 
646
      <para>Install the <emphasis role="strong">wine</emphasis> and <emphasis
 
647
      role="strong">wine-dev</emphasis> packages from <emphasis
 
648
      role="strong">Synaptic Package Manager</emphasis>.</para>
 
649
 
 
650
      <para>Wine is configured on your computer with an artificial C: drive.
 
651
      You can now access any Microsoft Windows application on Ubuntu.</para>
 
652
 
 
653
      <note userlevel="instructor">
 
654
        <title>Instructor Notes:</title>
 
655
 
 
656
        <para>The information included in this document is sufficient for the
 
657
        students to start playing games. The most suitable and easy method is
 
658
        chosen for illustration. However, performing other tasks, such as
 
659
        adding CD and DVD drives to Wine or using Microsoft Windows themes in
 
660
        Wine requires further configuration. If the students want to learn
 
661
        more about configuring Wine, refer them to <ulink
 
662
        url="https://help.ubuntu.com/community/Wine">https://help.ubuntu.com/community/Wine</ulink>.</para>
 
663
      </note>
 
664
    </sect2>
 
665
 
 
666
    <sect2>
 
667
      <title>Playing a Microsoft Windows Game on Ubuntu</title>
 
668
 
 
669
      <para>A Microsoft Windows executable file can be started with Wine
 
670
      through <emphasis role="strong">right-click</emphasis>, <emphasis
 
671
      role="strong">Open with</emphasis> "<emphasis>Wine Windows
 
672
      Emulator</emphasis>".</para>
 
673
 
 
674
      <para>If you install a Microsoft Windows application with Wine, an icon
 
675
      may be found in <emphasis role="strong">Applications</emphasis>,
 
676
      <emphasis role="strong">Other</emphasis>.</para>
 
677
    </sect2>
 
678
  </sect1>
 
679
 
 
680
  <?hard-pagebreak ?>
 
681
 
 
682
  <sect1>
 
683
    <title>Lesson Summary</title>
 
684
 
 
685
    <itemizedlist>
 
686
      <para>In this lesson, you learned that:</para>
 
687
 
 
688
      <listitem>
 
689
        <para>You can install and play many games available by default on
 
690
        Ubuntu and in repositories.</para>
 
691
      </listitem>
 
692
 
 
693
      <listitem>
 
694
        <para>You can install games by using the Add/Remove
 
695
        Applications or Synaptic Package Manager.</para>
 
696
      </listitem>
 
697
 
 
698
      <listitem>
 
699
        <para>You can play Microsoft Windows games on Ubuntu by installing a
 
700
        programme that provides a Microsoft Windows environment, such as
 
701
        Wine.</para>
 
702
      </listitem>
 
703
    </itemizedlist>
 
704
  </sect1>
 
705
 
 
706
  <sect1 role="questions">
 
707
    <title>Review Exercise</title>
 
708
 
 
709
    <para>Intentionally left blank.</para>
 
710
  </sect1>
 
711
 
 
712
  <sect1>
 
713
    <title>Lab Exercise</title>
 
714
 
 
715
    <formalpara>
 
716
      <title>Exercise 1: Installing a game on Ubuntu</title>
 
717
 
 
718
      <para>During a recent get together with your friends, you heard a lot of
 
719
      good things about a game that they play on their Linux operating system.
 
720
      You wish to play the same game, but you cannot find that game in the
 
721
      games package that got installed with Ubuntu. What do you need to do in
 
722
      order to play this game on your computer?</para>
 
723
    </formalpara>
 
724
 
 
725
    <procedure>
 
726
      <title>To perform the required task:</title>
 
727
 
 
728
      <step performance="required">
 
729
        <para>On the <emphasis role="strong">System</emphasis> menu, point to
 
730
        <emphasis role="strong">Administration</emphasis> and click <emphasis
 
731
        role="strong">Software Sources</emphasis> to display the <emphasis
 
732
        role="strong">Software Sources</emphasis> dialogue box.</para>
 
733
      </step>
 
734
 
 
735
      <step performance="required">
 
736
        <para>On the <emphasis role="strong">Software Sources</emphasis>
 
737
        dialogue box, select the check boxes next to main and universe
 
738
        options. Retain the <emphasis role="strong">Main server</emphasis>
 
739
        option in the <emphasis role="strong">Download from</emphasis>
 
740
        category and clear the <emphasis role="strong">CDrom with Ubuntu 7.10
 
741
        "Gutsy Gibbon"</emphasis> check box.</para>
 
742
      </step>
 
743
 
 
744
      <step performance="required">
 
745
        <para>Click <emphasis role="strong">Close</emphasis> to display a
 
746
        prompt and then click <emphasis role="strong">Reload</emphasis> on the
 
747
        prompt to update the list of applications available.</para>
 
748
      </step>
 
749
 
 
750
      <step performance="required">
 
751
        <para>To install the game, select <emphasis
 
752
        role="strong">Add/Remove</emphasis> on the <emphasis
 
753
        role="strong">Applications</emphasis> menu to display the <emphasis
 
754
        role="strong">Add/Remove Applications</emphasis> window.</para>
 
755
      </step>
 
756
 
 
757
      <step performance="required">
 
758
        <para>Select <emphasis role="strong">Games</emphasis> in the left pane
 
759
        of the window, change the Show list option to <emphasis
 
760
        role="strong">All Open Source Applications</emphasis>, type the name
 
761
        of the game in the <emphasis role="strong">Search</emphasis> box and
 
762
        press Enter.</para>
 
763
      </step>
 
764
 
 
765
      <step performance="required">
 
766
        <para>Select the check box next to the game to mark it for
 
767
        installation and click <emphasis role="strong">Apply
 
768
        Changes</emphasis>.</para>
 
769
      </step>
 
770
 
 
771
      <step performance="required">
 
772
        <para>On the confirmation dialogue box, click <emphasis
 
773
        role="strong">Apply</emphasis> to proceed.</para>
 
774
      </step>
 
775
 
 
776
      <step performance="required">
 
777
        <para>After the installation of the game is complete, a dialogue box
 
778
        confirms the installation and provides the option to launch the
 
779
        installed game. Double-click the name of the game to launch it.
 
780
        Alternatively, you can close this dialogue box and launch the game by
 
781
        using the <emphasis role="strong">Applications</emphasis> menu on the
 
782
        desktop.</para>
 
783
      </step>
 
784
    </procedure>
 
785
 
 
786
    <formalpara>
 
787
      <title>Exercise 2: Installing Wine and playing a Microsoft Windows game
 
788
      on Ubuntu</title>
 
789
 
 
790
      <para>You were browsing the Web one day and came across an interesting
 
791
      game. You downloaded it and every thing seemed fine until you realise
 
792
      that the game could be played only on Microsoft Windows, which is not
 
793
      installed on your computer. You really liked the game, how do you play
 
794
      this on Ubuntu?</para>
 
795
    </formalpara>
 
796
 
 
797
    <procedure>
 
798
      <title>To play a Windows game on Ubuntu:</title>
 
799
 
 
800
      <step performance="required">
 
801
        <para>Install <emphasis role="strong">wine</emphasis> and <emphasis
 
802
        role="strong">wine-dev</emphasis> packages from <emphasis
 
803
        role="strong">Synaptic Package Manager</emphasis>.</para>
 
804
      </step>
 
805
 
 
806
      <step performance="required">
 
807
        <para>Open the games setup tool with Wine.</para>
 
808
      </step>
 
809
 
 
810
      <step performance="required">
 
811
        <para>Start the games from the Applications menu.</para>
 
812
      </step>
 
813
    </procedure>
 
814
  </sect1>
 
815
</chapter>
 
 
b'\\ No newline at end of file'