This repository has been archived on 2026-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
PingPongPain/__init__.py
2025-06-16 19:00:49 +00:00

40 lines
777 B
Python

import logging
import pygame
#import NoPELib
#import PDOLib
class Game:
def __init__(self, surface, size):
"""
Ran when the game starts.
Args:
surface (pygame.Surface): The surface you draw to.
size (list[int, int]): The size of the surface.
"""
pygame.init()
self.surface = surface
self.size = size
def onEvent(self, event):
"""
Ran when an event is fired.
Args:
event (pygame.Event): The event that was fired
"""
pass
def draw(self):
"""
Ran once per frame, put your drawing code in here
"""
pass
def close(self):
"""
Ran when the game closes
"""
pass