From f6f25008051f5059154f5246606122a5650b9474 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 27 Apr 2021 19:24:44 +0200 Subject: [PATCH] pgzrun magically defines Actor, keyboard, screen Like https://github.com/lordmauve/pgzero/blob/master/.flake8 --- Car Racing/RaceGame.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Car Racing/RaceGame.py b/Car Racing/RaceGame.py index 4334343..b8195e5 100644 --- a/Car Racing/RaceGame.py +++ b/Car Racing/RaceGame.py @@ -1,7 +1,10 @@ -#!/usr/bin/python3 -import pgzrun +#!/usr/bin/env python3 from random import randint # import randint module from random lib +import pgzrun + +Actor, keyboard, screen = Actor, keyboard, screen # noqa: F821 pgzrun magically defines these + WIDTH = 700 # width of the window HEIGHT = 800 # height of the window trackLeft = [] # list to store left barriers