This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
melissa.bastin
/
paf-loiseau
forked from
fabien.toune/paf-loiseau
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
challenge 6
challenge-6
Melissa
3 years ago
parent
c8b80faa17
commit
b25544f4a2
1 changed files
with
7 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-3
birdie.py
+ 7
- 3
birdie.py
View File
@@ -5,9 +5,13 @@ WIDTH = 400
HEIGHT = 708
HEIGHT = 708
direction = 1
direction = 1
def on_mouse_down():
print('Stop!')
titi.speed = 1
def on_mouse_down(button):
if button == mouse.LEFT:
print('freinage')
titi.speed -= 1
elif button == mouse.RIGHT:
print('accélaration')
titi.speed += 1
def on_mouse_up():
def on_mouse_up():
titi.speed = 1
titi.speed = 1
Write
Preview
Loading…
Cancel
Save