Sequence Diagram
Sequence Diagram
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 --->| | |