Skip to content

Commit

Permalink
Merge pull request #125 from cclauss/patch-3
Browse files Browse the repository at this point in the history
pgzrun magically defines Actor, keyboard, screen
  • Loading branch information
aman-raza authored Apr 28, 2021
2 parents 687a759 + f6f2500 commit 0c7ea9a
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 0c7ea9a

Please sign in to comment.