Bladeren bron

mise a jour

titi-go
patient 3 jaren geleden
bovenliggende
commit
271b265bda
1 gewijzigde bestanden met toevoegingen van 14 en 8 verwijderingen
  1. +14
    -8
      birdie.py

+ 14
- 8
birdie.py Bestand weergeven

@@ -1,21 +1,27 @@
import pgzrun

TITLE = "Paf l'oiseau"
TITLE = "paf l'oiseau"
WIDTH = 400
HEIGHT = 708

def on_mouse_down():
print('Clic souris !')
titi.y -= 50
titi= Actor('bird1', (75, 350))

def update():
titi.y += titi.speed

def draw():
screen.blit('background', (0, 0))
titi.draw()

titi = Actor('bird1', (75, 350))
titi.speed = 1
def on_mouse_down():
print('Clic souris !')
titi.y -= 50 #
def on_mouse_up():
print('mouse up')
titi.y -= 20

def update():
titi.y += 1
titi.speed = 1
titi.y += titi.speed

pgzrun.go()

Laden…
Annuleren
Opslaan