Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
S'inscrire
Connexion
verkamerloic
/
paf-loiseau
bifurqué depuis
fabien.toune/paf-loiseau
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Demandes d'ajout
0
Versions
0
Wiki
Activité
Parcourir la source
maSolution
chap-1-speed
verkamerloic
il y a 3 ans
Parent
d0b23b4369
révision
bce8a4c708
1 fichiers modifiés
avec
19 ajouts
et
1 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
+19
-1
birdie.py
+ 19
- 1
birdie.py
Voir le fichier
@@ -1 +1,19 @@
print('Hello world !')
import pgzrun
TITLE = "Paf l'oiseau"
WIDTH = 400
HEIGHT = 708
def on_mouse_down():
print("clic souris !")
titi.y -=50
def update ():
titi.y += titi.speed
def draw():
screen.blit('background', (0, 0))
titi.draw()
titi = Actor("bird1",(75,350))
titi.speed = 1
pgzrun.go()
Écrire
Aperçu
Chargement…
Annuler
Enregistrer