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">
4
<title>Ubuntu and Games</title>
5
<para><emphasis role="strong">Objectives</emphasis></para>
6
<para>In this lesson, you will learn how to:
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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
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>
130
<para>Let's play!</para>
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>
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>
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>
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>
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
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>
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>
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>
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>
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
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>
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>
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>
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>
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
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>
278
<listitem><para>Press any key on the keyboard to proceed to the next
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>
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>
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>
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
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>
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>
323
<listitem><para>Click <emphasis role="strong">Race!</emphasis> to start
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>
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>
347
<para>You can win the cups only by practising and focusing on improving your
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>
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
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>
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>
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>
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>
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>
396
<title>Lesson Summary</title>
397
<para>In this lesson, you learned that:
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>
411
<title>Review Exercise</title>
412
<para>Intentionally left blank.</para>
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>
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>
5
<title>Ubuntu and Games</title>
8
<title>Objectives</title>
10
<para>In this lesson, you will learn how to: <itemizedlist>
12
<para>Find and install games on Ubuntu</para>
16
<para>Play some of the more popular Ubuntu games</para>
20
<para>Configure other games</para>
22
</itemizedlist></para>
26
<title>Installing Games on Ubuntu</title>
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>
32
<note userlevel="instructor">
33
<title>Instructor Notes:</title>
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
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>
50
<title>Installing a Game from a Repository</title>
52
<para><emphasis role="strong">Add/Remove Applications</emphasis>>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>
60
<title>To install a game from a repository:</title>
62
<step performance="required">
63
<para>On the <emphasis role="strong">Applications</emphasis> menu,
64
select <emphasis role="strong">Add/Remove</emphasis>.</para>
67
<title>Launching Add/Remove</title>
71
<imagedata fileref="images/Lesson06_images_001.png"
72
format="PNG" width="4cm" />
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
88
<title>Add/Remove Applications window</title>
92
<imagedata fileref="images/Lesson06_images_002.png"
93
format="PNG" width="8cm" />
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>
106
<title>Changing List Option</title>
110
<imagedata fileref="images/Lesson06_images_003.png"
111
format="PNG" width="10cm" />
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
128
<title>Searching a Game</title>
132
<imagedata fileref="images/Lesson06_images_004.png"
133
format="PNG" width="10cm" />
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>
148
<title>Nice to Know:</title>
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>
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>
164
<title>Confirming Changes</title>
168
<imagedata fileref="images/Lesson06_images_005.png"
169
format="PNG" width="6cm" />
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>
183
<title>Dialogue Box Confirming Installation</title>
187
<imagedata fileref="images/Lesson06_images_006.png"
188
format="PNG" width="6cm" />
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
201
<title>Launching a Game</title>
205
<imagedata fileref="images/Lesson06_images_007.png"
206
format="PNG" width="11cm" />
213
<para>Let's play!</para>
218
<title>Playing Ubuntu Games</title>
220
<note userlevel="instructor">
221
<title>Instructor Notes:</title>
223
<para>Allow the students to play these games for about 10 - 15
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>
235
<para>Ensure that you have hardware-accelerated 3D drivers installed for
236
your video card.</para>
239
<note userlevel="instructor">
240
<title>Instructor Notes:</title>
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>
248
<title>Playing Frozen-Bubble</title>
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>
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>
268
<title>To play Frozen-Bubble:</title>
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
277
<title>Launching Frozen-Bubble</title>
281
<imagedata fileref="images/Lesson06_images_008.png"
282
format="PNG" width="10.4cm" />
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
296
<title>Frozen-Bubble Main Menu</title>
300
<imagedata fileref="images/Lesson06_images_009.png"
301
format="PNG" width="8cm" />
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>
316
<title>Single Player Game Menu</title>
320
<imagedata fileref="images/Lesson06_images_010.png"
321
format="PNG" width="2cm" />
329
<para>Use the up or down arrow keys to navigate through the
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
346
<title>Playing Window</title>
350
<imagedata fileref="images/Lesson06_images_011.png"
351
format="PNG" width="9cm" />
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>
365
<title>Flashing Hurry Warning</title>
369
<imagedata fileref="images/Lesson06_images_012.png"
370
format="PNG" width="5cm" />
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>
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>
385
<title>Displaying Level Results</title>
389
<imagedata fileref="images/Lesson06_images_013.png"
390
format="PNG" width="15cm" />
398
<para>Press the <emphasis role="strong">ESC</emphasis> key to go
399
back to the previous window or close the application.</para>
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>
412
<title>High Score Windows</title>
416
<imagedata fileref="images/Lesson06_images_014.png"
417
format="PNG" width="8cm" />
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>
428
<note userlevel="instructor">
429
<title>Instructor Notes:</title>
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
438
<title>Playing PlanetPenguin Racer</title>
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>
447
<title>To play PlanetPenguin Racer:</title>
449
<step performance="required">
450
<para>Install the <emphasis role="strong">
451
planetpenguin-racer</emphasis> package from the Universe
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
462
<title>Launching PlanetPenguin Racer</title>
466
<imagedata fileref="images/Lesson06_images_015.png"
467
format="PNG" width="11cm" />
473
<step performance="required">
474
<para>Press any key on the keyboard to proceed to the next
478
<title>Starting Window</title>
482
<imagedata fileref="images/Lesson06_images_016.png"
483
format="PNG" width="15cm" />
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>
496
<title>Entering an Event</title>
500
<imagedata fileref="images/Lesson06_images_017.png"
501
format="PNG" width="11.5cm" />
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>
518
<title>Configuration Options</title>
522
<imagedata fileref="images/Lesson06_images_018.png"
523
format="PNG" width="11.5cm" />
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>
536
<title>Selecting Event and Cup</title>
540
<imagedata fileref="images/Lesson06_images_019.png"
541
format="PNG" width="11.5cm" />
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>
555
<step performance="required">
556
<para>Click <emphasis role="strong">Race!</emphasis> to start the
560
<title>Selecting a Race</title>
564
<imagedata fileref="images/Lesson06_images_020.png"
565
format="PNG" width="11.5cm" />
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
583
<title>Playing PlanetPenguin Racer</title>
587
<imagedata fileref="images/Lesson06_images_021.png"
588
format="PNG" width="8cm" />
595
<para>You can win the cups only by practising and focusing on improving
596
your performance.</para>
601
<title>Playing Other Popular Games</title>
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>
609
<title>Installing Wine</title>
611
<para>Cedega is not free software, so we will not cover how to install
612
it. Instead, we will install Wine:</para>
614
<note userlevel="instructor">
615
<title>Instructor Notes:</title>
617
<para>Before performing the following steps, ensure that all the
618
students have a Microsoft Windows game copied on their
623
<title>To install and configure Wine:</title>
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>
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>
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>
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>
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>
653
<note userlevel="instructor">
654
<title>Instructor Notes:</title>
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>
667
<title>Playing a Microsoft Windows Game on Ubuntu</title>
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>
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>
683
<title>Lesson Summary</title>
686
<para>In this lesson, you learned that:</para>
689
<para>You can install and play many games available by default on
690
Ubuntu and in repositories.</para>
694
<para>You can install games by using the Add/Remove
695
Applications or Synaptic Package Manager.</para>
699
<para>You can play Microsoft Windows games on Ubuntu by installing a
700
programme that provides a Microsoft Windows environment, such as
706
<sect1 role="questions">
707
<title>Review Exercise</title>
709
<para>Intentionally left blank.</para>
713
<title>Lab Exercise</title>
716
<title>Exercise 1: Installing a game on Ubuntu</title>
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>
726
<title>To perform the required task:</title>
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>
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>
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>
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>
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
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>
771
<step performance="required">
772
<para>On the confirmation dialogue box, click <emphasis
773
role="strong">Apply</emphasis> to proceed.</para>
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
787
<title>Exercise 2: Installing Wine and playing a Microsoft Windows game
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>
798
<title>To play a Windows game on Ubuntu:</title>
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>
806
<step performance="required">
807
<para>Open the games setup tool with Wine.</para>
810
<step performance="required">
811
<para>Start the games from the Applications menu.</para>
b'\\ No newline at end of file'