We're no strangers to love...
This commit is contained in:
parent
dce97c2a39
commit
de30a74c6d
1 changed files with 1 additions and 0 deletions
1
card.py
1
card.py
|
@ -27,6 +27,7 @@ class Card(turtle.Turtle):
|
|||
|
||||
def is_mouse_over(self, x, y):
|
||||
# Collision code reused from D. Atkinson's Turtle Crossing program, with some minor modifications.
|
||||
# https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
||||
top_edge = self.ycor() + 103
|
||||
bottom_edge = self.ycor() - 103
|
||||
car_left_edge = self.xcor() - 103
|
||||
|
|
Loading…
Reference in a new issue