0

The Magic Window

Before we can play, we need a place to put our game. In Pygame, we create a Screen using a width and a height.

Setting the Size

Pick the right dimensions for our Flappy Bird screen (Width, Height).

X: 0, Y: 0
X Position →
Y Position ↓
🎯
🎯

Level Goal

Create a portrait-mode screen with dimensions 400 pixels wide and 600 pixels high.

Logic Lab: python.py
0/2
12345678
import pygame # Initialize Pygame pygame.init() # Create the screen screen = pygame.display.set_mode((, )) pygame.display.set_caption("Flappy Bird")

Choose for blank #1