From 1fe19d3e589bbc5d40b74d007d6b1984cfc34925 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 8 Nov 2021 17:53:17 +0100 Subject: Make controller classes and screen classes inherit from abstract classes Signed-off-by: Olivier Gayot --- pycameltris/screens/InGame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pycameltris/screens/InGame.py') diff --git a/pycameltris/screens/InGame.py b/pycameltris/screens/InGame.py index f865c77..aa3e53b 100644 --- a/pycameltris/screens/InGame.py +++ b/pycameltris/screens/InGame.py @@ -5,6 +5,7 @@ import sys import pygame +from .Screen import Screen from ..piece import * from ..controller import Input, KeyboardController, JoystickController from ..misc import Pause @@ -247,7 +248,7 @@ def handle_input_released(instance, players, event): frames_per_gridcell = [48, 43, 38, 33, 28, 23, 18, 13, 8, 6, 5, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1] -class InGame: +class InGame(Screen): def __init__(self, players, screen): self.players = players self.screen = screen -- cgit v1.2.3