Professional Documents
Culture Documents
Chapter 01: What Is Multimedia: Part 1. Key Term Quiz
Chapter 01: What Is Multimedia: Part 1. Key Term Quiz
Chapter 01: What Is Multimedia: Part 1. Key Term Quiz
c. a web site
d. a multimedia title
e. an authoring tool
5. A project that is shipped or sold to consumers or end users, typically in a box or sleeve or on
the Internet, with or without instructions, is:
a. CD-ROM
b. an authoring tool
c. a multimedia project
d. a multimedia titled.
6. The 19th-century Russian composer who used an orchestra, a piano, a chorus, and a special
color organ to synthesize music and color in his Fifth Symphony, Prometheus was:
a. Rachmaninoff
b. Tchaikovsky
c. Scriabin
d. Rimsky-Korsakoff
e. Shostakovich.
7. Which one of the following is not/are not typically part of a multimedia specification?
a. text
b. odors
c. sound
d. video
e. pictures
8. VR stands for:
a. virtual reality
b. visual response
c. video raster
d. variable rate
e. valid registry
9. According to one source, in interactive multimedia presentations where you are really involved,
the retention rate is as high as:
a. 20 percent
b. 40 percent
c. 80 percent
d. 60 percent
e. 100 percent
10. Which of the following is displayable on a web page after installation of a browser plug-in?
a. Windows 7
b. Adobe Flash
c. Mozilla
d. Internet Explorer
e. Firefox
11. PDA stands for:
a. primary digital asset
Part 4. PyGame PyGame (www.pygame.org) is another very popular open source framework that
provides an API for gaming application development needs. It provides a rich set of graphics and
sound libraries. We won't be using PyGame in this book. But since it is a prominent multimedia
framework, we will briefly discuss some of its most important modules and work out a simple
example. The PyGame website provides ample resources on use of this framework for animation
and game programming.
- Create a new Python source file and write the following code in it.
1 import pygame
2 import sys
3
4 pygame.init() // An instance of class Surface is created using display.set_mode method. This is
the main PyGame window inside which the images will be drawn.
5 bgcolor = (200, 200, 100)
6 surf = pygame.display.set_mode((400,400))
7
8 circle_color = (0, 255, 255)
9 x, y = 200, 300
10 circle_rad = 50
11
12 pygame.display.set_caption("My Pygame Window")
13
14 while True:
15 for event in pygame.event.get():
16 if event.type == pygame.QUIT:
17 sys.exit() // When the PyGame window is closed
18 elif event.type == pygame.KEYDOWN:
19 if event.key == pygame.K_UP:
20 y -= 10
21 elif event.key == pygame.K_DOWN:
22 y += 10
23 elif event.key == pygame.K_RIGHT: // When the RIGHT arrow key is pressed, the
circle is drawn with the x coordinate offset by 10 pixels to the previous position.
24 x += 10
25 elif event.key == pygame.K_LEFT:
26 x -= 10
27
28 circle_pos = (x, y)
29
30 surf.fill(bgcolor) // The background color of the PyGame window represented by object surf
31 pygame.draw.circle(surf, circle_color ,
32 circle_pos , circle_rad) // A circular shape is drawn in the PyGame surface
33 pygame.display.flip()
What just happened? We used PyGame to create a simple user interactive application. The
purpose of this example was to introduce some of the basic concepts behind animation and game
programming.