Skip to content

Instantly share code, notes, and snippets.

View mhighmore's full-sized avatar

Martin Highmore mhighmore

View GitHub Profile
@mhighmore
mhighmore / paddleball.py
Created June 7, 2017 09:16 — forked from feelinc/paddleball.py
Bounce game, using Python 3 & Tkinter
from tkinter import *
import random
import time
class Ball:
def __init__(self, canvas, paddle, color):
self.canvas = canvas
self.paddle = paddle
self.id = canvas.create_oval(10, 10, 25, 25, fill=color)