old_contents: # spritesAndSounds.py
  # Collision Detection
  #   with Keyboard and Mouse Input
  #   and with spites and sounds
  """
  This is a demonstration of doing
  collison detection with pygame.
  This also demonstrates how to get user
  input from the keyboard and the mouse
  using pygame. The use of Sprites,
  sound, and music are demonstrated as
  well.
  
  An example from Chapter 19 of
  'Invent Your Own Games With Python'
    by Al Sweigart
  
  A.C. LoGreco
  """
  
new_contents: # spritesAndSounds.py
  # Collision Detection
  #   with Keyboard and Mouse Input
  #   and with spites and sounds
  """
  This is a demonstration of doing
  collison detection with pygame.
  This also demonstrates how to get user
  input from the keyboard and the mouse
  using pygame. The use of Sprites,
  sound, and music are demonstrated as
  well.
  
  An example from Chapter 19 of
  'Invent Your Own Games With Python'
    by Al Sweigart
  
  A.C. LoGreco
  """
  
  import pygame, sys, time, random
  from pygame,locals import *
  
  # set up pygame
  pygame.init()
  mainClock = pygame.time.Clock()
  
  # set up the window
  WINDOWWIDTH = 400
  WINDOWHEIGHT = 400
  windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32)
  pygame.display.set_caption('Sprites and Sound')
  
  # set up the colors
  BLACK = (0, 0, 0)
  
  # set up the block data structure
  # player
  player = pygame.Rect(300, 100, 40, 40)
  playerImage = pygame.image.load('.\sprites\player.png')
  playerStretchedImage = pygame.transform.scale(playerImage, (40, 40))
  # food
  foodImage = pygame.image.load('.\sprites\cherry.png')
  foods = []
  for i in range(20):
      foods.append(pygame.Rect(random.randint(0, WINDOWWIDTH - 20),
                               random.randint(0, WINDOWHEIGHT - 20), 20, 20))
  
  foodCounter = 0
  NEWFOOD = 40
  
  # set up keyboard variables
  moveLeft = False
  moveRight = False
  moveUp = False
  moveDown = False
  
  MOVESPEED = 6
  
  # set up music
  pickUpSound = pygame.mixer.Sound(file='.\sounds\pickup.wav')
  pygame.mixer.music.load('.\sounds\background.mid')
  pygame.mixer.music.play(-1, 0.0)
  musicPlaying = True
  
  
subject: Add the game setup code to the spritesAndSounds.py module.