Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions flappy.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pygame, random
from pygame.locals import *

SCREEN_WIDTH = 400
SCREEN_HEIGHT = 800
SPEED = 10
GRAVITY = 1
GAME_SPEED = 10
SCREEN_WIDTH = 400 # Set width to 400
SCREEN_HEIGHT = 800 # Set height to 800
SPEED = 10 # Set speed to 10
GRAVITY = 1 # Set gravity to 1
GAME_SPEED = 10 # Set game speed to 10

GROUND_WIDTH = 2 * SCREEN_WIDTH
GROUND_HEIGHT = 100
Expand Down Expand Up @@ -161,4 +161,4 @@ def get_random_pipes(xpos):
pygame.sprite.groupcollide(bird_group, pipe_group, False, False, pygame.sprite.collide_mask)):
# Game over
input()
break
break