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

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.