Refactor pong code
This commit is contained in:
@@ -5,14 +5,17 @@ import color
|
||||
ACCENT_COLOR = color.PURPLE
|
||||
SECONDARY_COLOR = color.BROWN
|
||||
canvas = None
|
||||
|
||||
# Touches
|
||||
haut = False
|
||||
bas = False
|
||||
|
||||
# Trait
|
||||
trait = None
|
||||
T_WIDTH = 10
|
||||
T_HEIGHT = 90
|
||||
PAST_Y = 5
|
||||
|
||||
# Balle
|
||||
balle = None
|
||||
cos = 0.0
|
||||
|
||||
Reference in New Issue
Block a user