Flap.py 1.8 – becomes touch and increases difficulties

Flap.py 1.8

Added the chance to control the bird with touch on touch screens and now the pipes moves when you reach the score of 2.500.

Changes

In the while loop of the menu function:

            if event.type == pygame.MOUSEBUTTONDOWN:
                play(jump)
                moveup = 1

and also:

            if event.type == pygame.MOUSEBUTTONUP:
                moveup = 0

The other tutorials about flap.py

Link

The repository

Go here

Open the command line and write

git clone https://github.com/formazione/flappy

then launch flappy6.py