0% found this document useful (0 votes)
5 views1 page

Sequence Diagram

13d13

Uploaded by

f20220366
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Sequence Diagram

13d13

Uploaded by

f20220366
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

User FlappyBird Bird PipePair Pygame

Clock
| | | | | |
|-- Start Game --> | | | | |
| |-- load_images -> Pygame | | |
| |-- game_loop ---------------->| | |
| |-- Poll Events --> Pygame | | |
|-- Input (SPACE) -->| |-- update -->| | |
| | |-- Position -->| | |
| |-- Add Pipes ---------------->|-- create_pipe->| |
| |-- Update Pipes --------------|-- update -->-->| |
| |-- Check Collision ---------->|-- collides_with| |
| | | | | |
| |-- Update Display --> Pygame | | |
| | | | | |
| |-- Check Events --> Pygame | | |
| |-- Increment Score ---------->| | |
| |-- tick(FPS) ---------------->| <-- Flip Buffer |
| | | | | |
|-- Game Over --> |-- show_game_over_screen --->| | |

You might also like