This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x03a68C5299AE579Ae5ace456c162C6a8a785D16A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# PiPong - A remake of the classic Pong game using PyGame. Written by | |
# Liam Fraser - 28/07/2012 for the Linux User & Developer magazine. | |
# Modified by Jimmy Secretan in 12/2012 to use the pygame camera module to track white socks | |
import pygame # Provides what we need to make a game | |
import sys # Gives us the sys.exit function to close our program | |
import random # Can generate random positions for the pong ball | |
import pygame.camera |