Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
S'inscrire
Connexion
Ophelie
/
paf-loiseau
bifurqué depuis
fabien.toune/paf-loiseau
Suivre
1
Ajouter aux favoris
0
Bifurcation
1
Code
Tickets
0
Demandes d'ajout
0
Versions
0
Wiki
Activité
Parcourir la source
chap1-challenge6
chapitre-1-challenge-6
ophelie
il y a 3 ans
Parent
4a1a638b41
révision
371010e150
1 fichiers modifiés
avec
4 ajouts
et
2 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+4
-2
birdie.py
+ 4
- 2
birdie.py
Voir le fichier
@@ -14,9 +14,11 @@ def on_mouse_down(): # fonction 'click avec souris'
def on_mouse_up(): # fonction 'quand la souris ne click plus'
print('relache souris')
titi.y += 6
titi.speed = 5
titi.speed = 3
titi.speed += 1
birdi.y += 10
birdi.speed = 8
birdi.speed = 2
birdi.speed += 1
def update():
titi.y += titi.speed # mise a jour (60x/sec) de titi
Écrire
Aperçu
Chargement…
Annuler
Enregistrer