Skip to content

Commit

Permalink
pgzrun magically defines Actor, keyboard, screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Apr 27, 2021
1 parent 11ce9a3 commit f6f2500
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Car Racing/RaceGame.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f6f2500

Please sign in to comment.