Skip to content

Instantly share code, notes, and snippets.

@justoboy
justoboy / PyGameWindow.py
Last active January 31, 2021 18:09 — forked from vinothpandian/pong.py
Classic Pong game in Python - using pygame
import pygame
pygame.init()
class Window:
def __init__(self,size=(500,500),resizable=True,name="Pygame Window",fps=60):
self.resizable = resizable
self.size = size
self.width = size[0]
self.height = size[1]
if self.resizable: