Pinball game
Final programing project for IS452
The pinball game allows users to control one paddle to catch a moving ball.
Users can input the speed and color of ball and paddle before starting the game.
from tkinter import *
import tkinter
import time
-
input speed of the ball: float number (Suggest: 3-8) The bigger the number is, the higher the speed is.
1 can be really slow, 6 can be really fast, but you can input higher number if you want to try crazy speed.
Click enter -
input speed of the paddle: float number (Suggest: 3-8) The bigger the number is, the higher the speed is.
1 can be really slow, 6 can be really fast, but you can input higher number if you want to try crazy speed.
Click enter -
input color of the ball: string
Simple color, including blue, red, yellow, green, grey etc.
Click enter -
input color of the paddle: string
Simple color, including blue, red, yellow, green, grey etc.
Click enter -
then click the pop-up window, and click down-arrow key to start the game!
-
control the paddle by clicking left-arrow and right-arrow keys to catch the ball.
-
click up-arrow key to pause the game.
-
enjoy the play!